/* Auth Page Enhancements */

/* Modern Gradient Background */
.auth-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Left Side Image Container */
.auth-image-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
}

.auth-image-wrapper {
    position: relative;
    z-index: 10;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Right Side Form Container */
.auth-form-container {
    background: white;
    position: relative;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.auth-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.08);
}

/* Logo Styling */
.auth-logo {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
}

/* Form Input Enhancements */
.auth-input-field {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
}

.auth-input-field input {
    width: 100%;
    height: 56px;
    padding: 0 1rem 0 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-input-field input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.auth-input-field input::placeholder {
    color: #9ca3af;
}

.auth-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #6b7280;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-input-field input:focus + .auth-input-icon {
    color: #667eea;
}

/* Password Toggle Icon */
.auth-input-field .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    z-index: 10;
    transition: color 0.2s ease;
}

.auth-input-field .toggle-password:hover {
    color: #667eea;
}

/* Enhanced Button */
.auth-submit-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Register Button Enhancement */
.auth-register-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 2px solid #667eea;
    border-radius: 12px;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-register-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Language Switcher Enhancement */
.auth-language-switcher {
    display: inline-flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.auth-language-switcher a {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-language-switcher a:not(.active) {
    background: white;
    color: #6b7280;
}

.auth-language-switcher a:not(.active):hover {
    background: #f3f4f6;
    color: #667eea;
}

.auth-language-switcher a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Error Alert Enhancement */
.auth-error-alert {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

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

.auth-error-alert p {
    color: #991b1b;
    font-size: 0.875rem;
    margin: 0;
}

/* Remember Me & Forgot Password */
.auth-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.auth-remember-me {
    display: flex;
    align-items: center;
}

.auth-remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-remember-me input[type="checkbox"]:checked {
    background: #667eea;
    border-color: #667eea;
}

.auth-remember-me label {
    margin-left: 0.5rem;
    color: #6b7280;
    cursor: pointer;
}

.auth-forgot-link {
    color: #667eea;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Typography Enhancements */
.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.auth-divider-text {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .auth-image-container {
        display: none;
    }
    
    .auth-form-container {
        width: 100%;
        box-shadow: none;
    }
}

/* Dark Mode Support */
.dark .auth-form-container {
    background: #1f2937;
}

.dark .auth-form-card {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.dark .auth-title {
    color: white;
}

.dark .auth-subtitle {
    color: #9ca3af;
}

.dark .auth-input-field input {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.dark .auth-input-field input:focus {
    background: #4b5563;
    border-color: #667eea;
}

.dark .auth-language-switcher {
    background: #374151;
}

.dark .auth-language-switcher a:not(.active) {
    background: #374151;
    color: #d1d5db;
}

.dark .auth-language-switcher a:not(.active):hover {
    background: #4b5563;
}

/* Loading Animation */
.auth-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Register Form Enhancements */
.step-panel {
    animation: fadeIn 0.3s ease;
}

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

.step-panel h5 {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.dark .step-panel h5 {
    color: white;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.dark .form-label {
    color: #d1d5db;
}

.form-control,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.dark .form-control,
.dark .form-select {
    background: #374151;
    border-color: #4b5563;
    color: white;
}

.dark .form-control:focus,
.dark .form-select:focus {
    background: #4b5563;
    border-color: #667eea;
}

.child-row {
    background: #f9fafb;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.child-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.dark .child-row {
    background: #374151;
    border-color: #4b5563;
}

.dark .child-row:hover {
    border-color: #667eea;
}

.btn-outline-primary {
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dark .btn-outline-primary {
    background: transparent;
}

.dark .btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

#stepCount {
    font-weight: 600;
    color: #667eea;
    font-size: 0.875rem;
}

/* Success Message Styling */
.auth-success-alert {
    padding: 1.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.auth-success-alert p {
    color: #065f46;
    font-size: 1rem;
    margin: 0;
}

/* Remove Button Styling */
.removeChildRow {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.removeChildRow:hover {
    background: #fecaca;
    transform: scale(1.05);
}

/* Coparent Section Styling */
.coparent-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #bae6fd;
    margin-top: 1rem;
}

.dark .coparent-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    border-color: #3b82f6;
}
