/* Market Studio High-End SaaS Auth Styles - Sharp Corners */

.auth-container {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc((100vh - 360px) * 0.42);
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04) !important;
    position: relative;
    overflow: hidden;
    min-height: 215px;
    display: flex;
    flex-direction: column;
}

/* Accent Line at top of Auth Card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7 0%, #4f46e5 100%);
}

.auth-header-title {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem;
    text-align: center;
}

.auth-card-body {
    padding: 2rem !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-form-step {
    display: none;
    flex: 1;
    flex-direction: column;
}

.auth-form-step.active {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

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

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

/* Social & Verification Provider Buttons */
.btn-provider {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: #ffffff !important;
    padding: 0.65rem 1rem !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.btn-provider:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.06) !important;
}

/* WhatsApp Specific Button Accent */
.btn-whatsapp-provider {
    background: #f0fdf4 !important;
    border: 1px solid #86efac !important;
    color: #15803d !important;
}

.btn-whatsapp-provider:hover {
    background: #22c55e !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25) !important;
}

/* Input Fields */
.auth-input-group .form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    background-color: #ffffff;
    transition: all 0.15s ease-in-out;
}

.auth-input-group .form-control:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
    background-color: #ffffff;
}

/* Main Action Button */
.auth-btn-primary {
    background: #4f46e5 !important;
    border: 1px solid #4338ca !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    padding: 0.7rem 1.2rem !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2) !important;
}

.auth-btn-primary:hover {
    background: #4338ca !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
    transform: translateY(-1px);
}

/* Styled OTP Code Input Box */
.otp-input-styled {
    letter-spacing: 0.35em !important;
    font-family: monospace, 'Courier New', Courier !important;
    font-size: 1.25rem !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.otp-input-styled:focus {
    background-color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Left-Aligned Notification Alert Box */
#authAlert {
    text-align: left !important;
    font-size: 0.86rem;
    padding: 0.65rem 1rem;
    line-height: 1.5;
    border-radius: 0 !important;
}

#authAlert * {
    text-align: left !important;
}