/* =========================================
   REGISTRATION PAGE STYLES
   ========================================= */

/* Layout Override */
.auth-page .auth-container {
    max-width: 480px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

/* Card Styling */
.auth-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    overflow: hidden; /* Contains animations */
}

/* Header */
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { 
    font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; 
    color: var(--brand-dark);
}
.auth-subtitle { font-size: 0.95rem; opacity: 0.7; line-height: 1.4; }

/* Progress Dots */
.step-indicator {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 2rem;
}
.step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.step-dot.active { background: var(--brand-primary); transform: scale(1.2); }
.step-dot.completed { background: var(--brand-success); }

/* Form Steps Animation */
.form-step {
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
    display: block; /* <--- ADD THIS LINE */
    opacity: 1;
    transform: translateY(0);
}

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

/* Inputs & Grouping */
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
    display: block; font-size: 0.85rem; font-weight: 600; 
    margin-bottom: 0.5rem; color: var(--brand-dark);
}

input[type="email"], input[type="text"], input[type="tel"] {
    width: 100%; padding: 12px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
    background: var(--bg-input);
    color: var(--brand-dark);
}
input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
    background: var(--bg-card);
}

.input-hint { font-size: 0.8rem; opacity: 0.6; margin-top: 6px; }

/* OTP Specifics */
.otp-display-msg { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.8; }
#otp { letter-spacing: 4px; text-align: center; font-weight: 700; font-size: 1.25rem; }

/* Buttons */
.btn-primary {
    background-color: var(--brand-primary);
    color: white; border: none;
    padding: 14px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }

.btn-link {
    background: none; border: none;
    color: var(--brand-dark); opacity: 0.5;
    font-size: 0.9rem; 
    cursor: pointer; margin-top: 1rem; width: 100%;
    transition: opacity 0.2s;
}
.btn-link:hover { opacity: 1; text-decoration: underline; }

/* Checkbox */
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-weight: 400;
}
.checkbox-text { font-size: 0.85rem; opacity: 0.8; line-height: 1.4; }
.checkbox-text a { color: var(--brand-primary); text-decoration: none; }

/* Expert Upsell Section */
.expert-upsell {
    text-align: center;
    background: rgba(0,0,0,0.03);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.expert-upsell .icon { font-size: 1.5rem; }
.expert-upsell p { font-size: 0.9rem; opacity: 0.8; margin: 0; line-height: 1.5; }
.expert-upsell a { 
    color: var(--brand-primary); 
    font-weight: 700; 
    text-decoration: none;
    display: block; margin-top: 4px;
}
.expert-upsell a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
    .auth-page .auth-container { margin: 2rem auto; }
    .auth-card { padding: 1.5rem; }
}