*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Image panel */
.auth-image-panel {
    display: none;
    border-radius: inherit;
    background-image: linear-gradient(-225deg, #231557 0%, #44107A 29%, rgba(255, 19, 97, 0.75) 100%);
    overflow: hidden;
}

.auth-image-panel img {
    width: 60%;
    max-width: 450px;
    height: auto;
}

.auth-image-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent);
}

.auth-image-content h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.auth-image-content p {
    color: rgba(255, 255, 255, .65);
    font-size: .875rem;
    margin: 0;
}

.auth-image-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1rem;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}

.auth-image-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, .8);
    flex-shrink: 0;
}

/* Form panel */
.auth-form-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

@media (min-width: 900px) {
    .auth-image-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 55%;
    }

    .auth-form-panel {
        margin-left: 55%;
        width: 45%;
        max-width: 45%;
    }
}

/* Blobs */
.form-blob-1,
.form-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.form-blob-1 {
    width: 350px;
    height: 350px;
    top: -15%;
    right: -20%;
    background: rgba(6, 182, 212, .07);
}

.form-blob-2 {
    width: 280px;
    height: 280px;
    bottom: -10%;
    left: -15%;
    background: rgba(107, 33, 168, .1);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
    animation: fadeUp .45s ease both;
}

/* Inputs */
.auth-input {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    color: #0f172a;
    padding: .75rem 1rem;
    font-size: .9rem;
    font-family: var(--font-sans);
    transition: border-color .2s, box-shadow .2s;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(34, 211, 238, .5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .1);
    background: #fff;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.input-icon-wrapper .auth-input {
    padding-left: 2.75rem;
}

/* Submit button */
.btn-login {
    width: 100%;
    padding: .85rem 1.5rem;
    background: linear-gradient(135deg, #06b6d4, #0e7490);
    border: none;
    border-radius: .875rem;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 4px 20px rgba(6, 182, 212, .35);
    letter-spacing: .02em;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transition: left .5s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(6, 182, 212, .5), 0 0 0 1px rgba(34, 211, 238, .3);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
    font-size: .75rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Checkbox */
.auth-check .form-check-input {
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
}

.auth-check .form-check-input:checked {
    background-color: var(--color-cyan-500);
    border-color: var(--color-cyan-500);
}

.auth-check .form-check-label {
    color: #475569;
    font-size: .85rem;
    cursor: pointer;
}

/* Password toggle */
.toggle-password {
    position: absolute;
    top: 50%;
    right: .9rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: color .2s;
}

.toggle-password:hover {
    color: #475569;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
