.auth-shell {
    max-width: 420px;
    margin: 0 auto;
}

.auth-section {
    display: none;
}

.auth-section.is-active {
    display: block;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.auth-link-toggle {
    display: inline-block;
    margin-top: 1.25rem;
    color: #1472da;
    font-size: 1rem;
    text-decoration: none;
}

.auth-link-toggle:hover {
    color: #0f5fb7;
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

.auth-submit-email {
    background: #1472da;
    border-color: #1472da;
}

.auth-submit-email:hover,
.auth-submit-email:focus {
    background: #0f5fb7;
    border-color: #0f5fb7;
}

.auth-submit-otp {
    background: #1472da;
    border-color: #1472da;
}

.auth-submit-otp:hover,
.auth-submit-otp:focus {
    background: #0f5fb7;
    border-color: #0f5fb7;
}

.auth-row-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.otp-phone-wrap {
    display: flex;
    align-items: stretch;
}

.otp-phone-prefix {
    min-width: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0 0.75rem;
}

.otp-phone-input {
    border-radius: 0 8px 8px 0;
}

.otp-phone-wrap.is-invalid .otp-phone-prefix {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

.otp-modal-dialog {
    max-width: 800px;
}

.otp-modal-header {
    background: #1472da;
    color: #fff;
    border-bottom: 0;
    padding: 1rem 1.5rem;
}

.otp-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.otp-modal-close {
    filter: invert(1);
    opacity: 0.9;
}

.otp-modal-body {
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
}

.otp-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: rgba(20, 114, 218, 0.08);
    color: #1472da;
}

.otp-modal-heading {
    color: #4b5563;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.otp-modal-phone {
    color: #1472da;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.otp-expiry {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f59e0b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.otp-digit {
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
}

.otp-digit:focus {
    border-color: #1472da;
    box-shadow: 0 0 0 0.25rem rgba(20, 114, 218, 0.2);
}

.otp-digit.is-invalid {
    border-color: #dc3545;
}

.otp-phone-input.is-invalid {
    border-color: #dc3545;
}

.otp-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.75rem 0;
}

.otp-resend-status {
    color: #6b7280;
    margin-bottom: 1rem;
}

.otp-resend-actions {
    display: none;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.otp-resend-actions.is-visible {
    display: flex;
}

.otp-resend-label {
    color: #6b7280;
}

.otp-resend-btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.85rem 1rem;
}

.otp-feedback {
    display: none;
    color: #6b7280;
    margin-bottom: 1rem;
    margin-top: 10px;
    color: #f30404;
}

@media (max-width: 576px) {
    .otp-modal-phone {
        font-size: 1.6rem;
    }
    .otp-digit {
        width: 46px;
        height: 46px;
        font-size: 1.4rem;
    }
}

