.auth-modern {
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 197, 94, .14), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(20, 184, 166, .12), transparent 26%),
        #f7faf8;
    min-height: calc(100vh - 120px);
    padding: 34px 0 48px;
}

.auth-modern__shell {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 480px);
    margin: 0 auto;
    max-width: 1080px;
    padding: 0 16px;
}

.auth-modern__story,
.auth-modern__card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.auth-modern__story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 34px;
    position: relative;
}

.auth-modern__story::after {
    background: linear-gradient(135deg, rgba(22, 163, 74, .12), rgba(13, 148, 136, .08));
    border-radius: 999px;
    bottom: -120px;
    content: "";
    height: 260px;
    position: absolute;
    right: -90px;
    width: 260px;
}

.auth-modern__brand {
    align-items: center;
    display: inline-flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.auth-modern__brand img {
    height: 46px;
    object-fit: contain;
    width: auto;
}

.auth-modern__brand span {
    color: #0f172a;
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.auth-modern__copy {
    max-width: 460px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.auth-modern__eyebrow {
    color: #047857;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.auth-modern__copy h1 {
    color: #07111f;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 14px;
}

.auth-modern__copy p {
    color: #52627a;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.auth-modern__trust {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: relative;
    z-index: 1;
}

.auth-trust {
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 13px;
}

.auth-trust i {
    color: #16a34a;
    font-size: 17px;
    margin-bottom: 8px;
}

.auth-trust strong {
    color: #0f172a;
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.auth-trust small {
    color: #000;
    display: block;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
}

.auth-modern__card {
    padding: 26px;
}

.auth-card__head {
    margin-bottom: 20px;
    text-align: center;
}

.auth-card__logo {
    display: none;
    height: 42px;
    margin: 0 auto 14px;
    object-fit: contain;
}

.auth-card__head h2 {
    color: #07111f;
    font-size: 25px;
    font-weight: 800;
    margin: 0 0 6px;
}

.auth-card__head p {
    color: #000;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 310px;
}

.auth-alert {
    border: 0;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.45;
    padding: 12px 14px;
}

.auth-alert.alert-success {
    background: #ecfdf5;
    color: #047857;
}

.auth-alert.alert-danger {
    background: #fff1f2;
    color: #be123c;
}

.auth-whatsapp-btn,
.auth-primary-btn {
    align-items: center;
    border: 0;
    border-radius: 18px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 52px;
    padding: 13px 18px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    width: 100%;
}

.auth-whatsapp-btn {
    background: linear-gradient(135deg, #18b368, #0f8f5d);
    box-shadow: 0 16px 34px rgba(15, 143, 93, .24);
    color: #fff;
}

.auth-primary-btn {
    background: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .16);
    color: #fff;
}

.auth-primary-btn.is-green {
    background: linear-gradient(135deg, #16a34a, #0f766e);
}

.auth-whatsapp-btn:hover,
.auth-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.auth-whatsapp-btn:disabled,
.auth-primary-btn:disabled {
    opacity: .72;
}

.auth-social-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 12px;
}

.auth-social-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #111827;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.auth-social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #111827;
    transform: translateY(-1px);
}

.auth-divider {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 12px;
    letter-spacing: .05em;
    margin: 18px 0;
    text-transform: uppercase;
}

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

.auth-field {
    margin-bottom: 13px;
}

.auth-field label {
    color: #334155;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 7px;
}

.auth-input-wrap {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    display: flex;
    min-height: 50px;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-input-wrap:focus-within {
    background: #fff;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .1);
}

.auth-input-wrap i {
    color: #94a3b8;
    flex: 0 0 42px;
    text-align: center;
}

.auth-input-wrap input {
    background: transparent;
    border: 0;
    color: #0f172a;
    flex: 1;
    font-size: 14px;
    min-width: 0;
    outline: 0;
    padding: 0 14px 0 0;
}

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

.auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #000;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 44px;
}

.auth-inline-error {
    color: #dc2626;
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-top: 6px;
}

.auth-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 4px 0 16px;
}

.auth-check {
    align-items: center;
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
}

.auth-check input {
    accent-color: #16a34a;
    height: 16px;
    width: 16px;
}

.auth-link {
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.auth-link:hover {
    color: #065f46;
}

.auth-foot {
    color: #000;
    font-size: 13px;
    margin-top: 18px;
    text-align: center;
}

.auth-foot a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.auth-portal-switch {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    padding: 10px;
}

.auth-portal-switch span {
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.auth-portal-switch a {
    align-items: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    color: #344054;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    gap: 6px;
    padding: 8px 11px;
    text-decoration: none;
}

.auth-portal-switch a:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.auth-steps {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.auth-step {
    background: #e2e8f0;
    border-radius: 999px;
    height: 5px;
}

.auth-step.is-active {
    background: #16a34a;
}

.auth-whatsapp-panel {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    margin-top: 12px;
    padding: 13px;
}

.auth-whatsapp-flow {
    display: none;
    margin-top: 14px;
}

.auth-whatsapp-flow.is-open {
    display: block;
}

.auth-wa-step {
    display: none;
}

.auth-wa-step.is-active {
    display: block;
}

.auth-otp-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 12px 0;
}

.auth-otp-grid input {
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    height: 50px;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
    width: 100%;
}

.auth-otp-grid input:focus {
    background: #fff;
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .1);
    outline: 0;
}

.auth-wa-message {
    border-radius: 14px;
    display: none;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 10px;
    padding: 10px 12px;
}

.auth-wa-message.is-visible {
    display: block;
}

.auth-wa-message.is-error {
    background: #fff1f2;
    color: #be123c;
}

.auth-wa-message.is-success {
    background: #ecfdf5;
    color: #047857;
}

.auth-wa-helper {
    color: #000;
    font-size: 12px;
    line-height: 1.5;
    margin: 8px 0 0;
}

.auth-wa-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

.auth-resend-btn {
    background: transparent;
    border: 0;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
    padding: 0;
}

.auth-resend-btn:disabled {
    color: #94a3b8;
}

.auth-secondary-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    min-height: 46px;
    padding: 11px 14px;
    width: 100%;
}

.auth-whatsapp-panel strong {
    color: #065f46;
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.auth-whatsapp-panel p {
    color: #047857;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.auth-loader-dot {
    animation: authPulse .9s infinite ease-in-out;
    background: currentColor;
    border-radius: 999px;
    display: inline-block;
    height: 6px;
    margin-left: 4px;
    width: 6px;
}

@keyframes authPulse {
    0%, 100% {
        opacity: .35;
        transform: scale(.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 991.98px) {
    .auth-modern {
        min-height: auto;
        padding: 18px 0 36px;
    }

    .auth-modern__shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-modern__story {
        display: none;
    }

    .auth-card__logo {
        display: block;
    }

    .auth-modern__card {
        border-radius: 24px;
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .auth-modern {
        padding: 10px 0 28px;
    }

    .auth-modern__shell {
        padding: 0 10px;
    }

    .auth-modern__card {
        border-radius: 22px;
        padding: 18px;
    }

    .auth-card__head {
        margin-bottom: 16px;
    }

    .auth-card__head h2 {
        font-size: 22px;
    }

    .auth-social-grid {
        grid-template-columns: 1fr 1fr;
    }

    .auth-input-wrap {
        min-height: 48px;
    }

    .auth-otp-grid {
        gap: 6px;
    }

    .auth-otp-grid input {
        border-radius: 12px;
        font-size: 18px;
        height: 46px;
    }
}
