/* Auth Login Page Styles */

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6.5rem 1rem 3.5rem 1rem !important;
    margin-top: 1.5rem !important;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Toast Notification Styling Fix (Remove dark grey backdrop overlay) */
body .swal2-container.swal2-top-end,
body .swal2-container.swal2-top,
body .swal2-container.swal2-top-start,
body .swal2-container:has(.swal2-toast) {
    background: transparent !important;
    background-color: transparent !important;
    pointer-events: none !important;
}

body .swal2-popup.swal2-toast {
    pointer-events: auto !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 8px -2px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 1rem !important;
    padding: 0.85rem 1.2rem !important;
    background: #ffffff !important;
}

/* Inline Alert Banner Above Form (Tailor Bazar Blue Theme) */
.inline-alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0f7ff;
    border: 1.5px solid #bae6fd;
    color: #0369a1;
    padding: 0.85rem 1.1rem;
    border-radius: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 98, 172, 0.08);
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.inline-alert-success i {
    font-size: 1.15rem;
    color: #0062ac;
    flex-shrink: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 15px rgba(0, 98, 172, 0.04);
    max-width: 440px;
    width: 100%;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0062ac, #0088ff, #004d88);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 98, 172, 0.08);
    color: #0062ac;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Input Field Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code-prefix {
    position: absolute;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    padding-right: 0.6rem;
    border-right: 1.5px solid #cbd5e1;
    pointer-events: none;
    z-index: 2;
}

.country-code-prefix img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
}

.form-input-phone {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 5.25rem !important;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #0f172a;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input-phone:focus {
    background: #ffffff;
    border-color: #0062ac;
    box-shadow: 0 0 0 4px rgba(0, 98, 172, 0.12);
}

/* 6-Digit OTP Box Grid */
.otp-boxes-wrapper {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin: 1.5rem 0 1rem;
}

.otp-box-input {
    width: 2.5rem;
    height: 3rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.otp-box-input:focus {
    background: #ffffff;
    border-color: #0062ac;
    box-shadow: 0 0 0 4px rgba(0, 98, 172, 0.15);
    transform: translateY(-2px);
}

.otp-box-input.filled {
    border-color: #0062ac;
    background: rgba(0, 98, 172, 0.04);
}

/* Action Buttons */
.btn-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0062ac 0%, #004d88 100%);
    border: none;
    border-radius: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
    box-shadow: 0 8px 16px -4px rgba(0, 98, 172, 0.35);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px -4px rgba(0, 98, 172, 0.45);
    background: linear-gradient(135deg, #0073c8 0%, #005a9e 100%);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-resend-otp {
    background: none;
    border: none;
    color: #0062ac;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-resend-otp:hover:not(:disabled) {
    background: rgba(0, 98, 172, 0.08);
    text-decoration: underline;
}

.btn-resend-otp:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.otp-timer-badge {
    font-size: 0.825rem;
    color: #64748b;
    font-weight: 500;
}

.auth-step-transition {
    animation: fadeInSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.edit-phone-btn {
    color: #0062ac;
    font-size: 0.825rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    transition: opacity 0.2s ease;
}

.edit-phone-btn:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.auth-footer-prompt {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: #64748b;
}

.auth-footer-link {
    color: #0062ac;
    font-weight: 600;
    text-decoration: none;
}

.auth-footer-link:hover {
    text-decoration: underline;
}
