/* Member Auth Styling - Full-screen Centered (Light Mode) */

:root {
    --primary-blue: #0056b3;
    --primary-red: #dc3545;
    --text-slate: #64748b;
    --text-dark: #1e293b;
    --bg-faint: #f8fafc;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    background: #f0f7ff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Background Decoration */
.auth-bg-decor {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(0, 86, 179, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(220, 53, 69, 0.03) 0%, transparent 50%);
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.auth-logo-box {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-box img {
    height: 50px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-slate);
    font-size: 0.95rem;
}

/* Auth Form */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    margin-left: 2px;
}

.auth-input-wrapper { position: relative; }
.auth-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.3s;
    pointer-events: none;
}

.auth-input-wrapper .form-control {
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 13px 16px 13px 48px;
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-input-wrapper .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
    outline: none;
}

.auth-input-wrapper .form-control:focus + i { color: var(--primary-blue); }

/* Password Toggle Eye */
.btn-toggle-password {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    margin: auto !important;
    background: none;
    border: none !important;
    padding: 0 !important;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    color: #94a3b8;
}

.btn-toggle-password i {
    font-style: normal !important;
    font-size: 1.1rem;
    display: block;
    line-height: 1;
}

.btn-toggle-password:hover {
    color: var(--primary-blue);
    background: rgba(0, 86, 179, 0.05);
}

/* Multi-step Logic */
.auth-step { display: none; margin-bottom: 15px; }
.auth-step.active { display: block; animation: slideIn 0.4s ease-out; }

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

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.step-dot {
    width: 24px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s;
}

.step-dot.active { background: var(--primary-blue); width: 40px; }

/* Buttons */
.auth-btn-primary, .auth-btn-next {
    width: 100%;
    padding: 15px;
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -5px rgba(0, 86, 179, 0.3);
}

.auth-btn-primary:hover, .auth-btn-next:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 86, 179, 0.4);
}

.auth-btn-back {
    display: block;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-slate);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
}

.auth-btn-back:hover { color: var(--text-dark); }

/* Role Selector */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.role-label {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-slate) !important;
}

.role-option input:checked + .role-label {
    background: rgba(0, 86, 179, 0.05);
    border-color: var(--primary-blue);
    color: var(--primary-blue) !important;
}

.auth-footer { text-align: center; margin-top: 30px; font-size: 0.9rem; color: var(--text-slate); }
.auth-link { color: var(--primary-blue); font-weight: 700; text-decoration: none; }

@media (max-width: 480px) {
    .auth-wrapper { padding: 10px; }
    .auth-card { padding: 30px 15px; border-radius: 20px; }
    .auth-title { font-size: 1.5rem; }
    .auth-input-wrapper .form-control {
        font-size: 16px !important; /* Critical for iOS */
        padding-left: 44px !important; 
    }
    .auth-input-wrapper i {
        left: 14px !important;
    }
    .role-selector {
        grid-template-columns: 1fr !important;
    }
}
