:root {
    --red: #c34a3c;
    --red-deep: #8f2f25;
    --cream-light: #fbf8f3;
    --charcoal: #171717;
    --gray-light: #b4b4b4;
    --gray-mid: #707070;
    --gold-light: #efd7a4;
    --radius-lg: 28px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .18);
    background: #fff;
}

.login-visual {
    position: relative;
    background:
        linear-gradient(135deg, rgba(16, 16, 16, .86), rgba(195, 74, 60, .56)),
        url('../assets/img/backgrounds/bg-9.jpg') left center / cover no-repeat;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(239, 215, 164, .14), transparent 35%);
    pointer-events: none;
}

.visual-content,
.visual-footer {
    position: relative;
    z-index: 2;
}

.login-visual h2 {
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(2rem, 4vw, 3.6rem);
    margin: 1.5rem 0 .9rem;
}

.login-visual p {
    color: rgba(255, 255, 255, .82);
    max-width: 480px;
    line-height: 1.75;
}

.visual-pill {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .52rem .88rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--gold-light);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.visual-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin-top: 2rem;
    max-width: 520px;
}

.visual-mini-card {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(10px);
}

.visual-mini-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: .2rem;
    color: #fff;
}

.visual-mini-card span {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
}

.login-form {
    padding: 2.5rem;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 100%);
}

.auth-panel {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
}

.brand-mark {
    width: 112px;
    margin-bottom: 1.5rem;
}

.auth-view {
    display: none;
    animation: fadeIn .24s ease;
}

.auth-view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.auth-title {
    font-weight: 800;
    margin-bottom: .45rem;
    line-height: 1.15;
}

.auth-desc {
    color: var(--gray-mid);
    margin-bottom: 1.35rem;
    line-height: 1.7;
}

.form-label {
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: .45rem;
}

.form-control {
    border-radius: 16px;
    padding: .9rem 1rem;
    min-height: 54px;
    border: 1px solid rgba(23, 23, 23, .12);
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 .2rem rgba(195, 74, 60, .15);
}

.password-wrap {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--gray-mid);
    padding: 0;
    line-height: 1;
}

.btn-nmt {
    background: linear-gradient(135deg, var(--red), var(--red-deep));
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .9rem 1rem;
    font-weight: 700;
    width: 100%;
    transition: .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 54px;
    box-shadow: 0 12px 28px rgba(195, 74, 60, .22);
}

.btn-nmt:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(195, 74, 60, .32);
    color: #fff;
}

.btn-ghost {
    border-radius: 999px;
    border: 1px solid rgba(23, 23, 23, .12);
    padding: .85rem 1rem;
    background: #fff;
    font-weight: 600;
    color: var(--charcoal);
    width: 100%;
    min-height: 54px;
}

.btn-google {
    border-radius: 999px;
    border: 1px solid rgba(23, 23, 23, .12);
    padding: .85rem 1rem;
    background: #fff;
    font-weight: 600;
    width: 100%;
    min-height: 54px;
}

.divider {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 1rem 0;
    color: var(--gray-light);
    font-size: .85rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ece7df;
}

.link-inline {
    color: var(--red-deep);
    font-weight: 600;
    text-decoration: none;
}

.link-inline:hover {
    color: var(--red);
}

.auth-note {
    margin-top: 1rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    background: rgba(195, 74, 60, .06);
    border: 1px solid rgba(195, 74, 60, .12);
    color: var(--gray-mid);
    line-height: 1.65;
    font-size: .92rem;
}

.success-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(195, 74, 60, .08);
    color: var(--red-deep);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tiny-help {
    font-size: .88rem;
    color: var(--gray-mid);
}

.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .6rem;
    margin-bottom: 1rem;
}

.otp-input {
    min-height: 58px;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    border: 1px solid rgba(23, 23, 23, .12);
}

.otp-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 .2rem rgba(195, 74, 60, .12);
}

@media (max-width: 991px) {
    .login-shell {
        max-width: 100%;
    }

    .login-visual {
        min-height: 640px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border-radius: 0;
    }

    .login-visual {
        display: none;
    }

    .login-form {
        padding: 2rem 1.25rem;
    }

    .auth-panel {
        max-width: 100%;
    }

    .otp-grid {
        gap: .45rem;
    }

    .otp-input {
        min-height: 52px;
    }
}