/* ===== REGISTRATION PAGE STYLES ===== */
.register-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.register-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.register-background .shape-5 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 20%;
}

.register-container {
    display: flex;
    width: 95%;
    max-width: 1200px;
    min-height: 700px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 20px 0;
}

.register-card {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 700px;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.register-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.register-header p {
    color: var(--secondary);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e1e5e9;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: var(--transition);
    border: 2px solid #e1e5e9;
}

.step.active .step-number {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.step span {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
    text-align: center;
}

.step.active span {
    color: var(--primary);
    font-weight: 600;
}

/* Registration Form */
.register-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary);
    opacity: 0.7;
    z-index: 2;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8f9fa;
    font-family: 'Inter', sans-serif;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.input-with-icon input.error,
.input-with-icon select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.username-availability,
.password-match {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 500;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: var(--transition);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--secondary);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn-prev,
.btn-next,
.btn-register {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #f8f9fa;
    color: var(--secondary);
    border: 1px solid #e1e5e9;
}

.btn-prev:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.btn-next,
.btn-register {
    background: var(--accent);
    color: var(--primary);
}

.btn-next:hover,
.btn-register:hover {
    background: #c19b2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-register {
    position: relative;
    overflow: hidden;
}

.btn-register.loading .btn-text {
    opacity: 0;
}

.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.register-footer p {
    color: var(--secondary);
    font-size: 0.9rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.link:hover {
    color: var(--accent);
}

/* Registration Side Panel */
.register-side-panel {
    flex: 0 0 45%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.register-side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.side-panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.side-panel-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.side-panel-content > p {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.benefit-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.benefit-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.5;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.testimonial-content i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .register-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .register-side-panel {
        display: none;
    }
    
    .register-card {
        max-height: none;
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step {
        flex-direction: row;
        gap: 15px;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-prev,
    .btn-next,
    .btn-register {
        width: 100%;
        justify-content: center;
    }
}
        :root {
            --primary: #1a365d;
            --secondary: #2d3748;
            --accent: #d4af37;
            --light: #f7fafc;
            --dark: #2d3748;
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .civil-status-options, .sex-options, .residence-options {
            display: flex;
            gap: 15px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .radio-option {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .radio-option input[type="radio"] {
            margin: 0;
        }

        .spouse-section {
            display: none;
            margin-top: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid var(--primary);
        }

        .spouse-section.active {
            display: block;
        }

        .error-message {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .success-message {
            color: #2ecc71;
            font-size: 14px;
            margin-top: 10px;
            text-align: center;
            display: none;
        }

        body.register-page {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            position: relative;
        }

        .register-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .floating-shapes .shape {
            position: absolute;
            background: rgba(212, 175, 55, 0.1);
            border-radius: 50%;
            animation: float 10s ease-in-out infinite;
        }

        .shape-1 { width: 50px; height: 50px; top: 10%; left: 10%; }
        .shape-2 { width: 30px; height: 30px; top: 30%; right: 20%; }
        .shape-3 { width: 40px; height: 40px; bottom: 20%; left: 20%; }
        .shape-4 { width: 20px; height: 20px; top: 50%; right: 10%; }
        .shape-5 { width: 150px; height: 150px; bottom: 10%; left: 20%; }

        .register-container {
            width: 95%;
            max-width: 1200px;
            margin: 20px 0;
            position: relative;
            z-index: 1;
        }

        .register-card {
            padding: 40px;
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            max-height: 80vh;
        }

        .register-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .register-header .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .register-header .logo i {
            color: var(--accent);
            font-size: 2rem;
        }

        .register-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            color: var(--primary);
            margin: 0;
        }

        .register-header p {
            color: var(--secondary);
            opacity: 0.8;
            margin-top: 10px;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            margin: 30px 0 40px;
            position: relative;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .progress-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 0;
            right: 0;
            height: 2px;
            background: #e1e5e9;
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            flex: 1;
        }

        .step-number {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e1e5e9;
            color: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-bottom: 8px;
            transition: var(--transition);
            border: 2px solid #e1e5e9;
        }

        .step.active .step-number {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .step span {
            font-size: 0.8rem;
            color: var(--secondary);
            font-weight: 500;
        }

        .step.active span {
            color: var(--primary);
            font-weight: 600;
        }

        .register-form {
            width: 100%;
            max-width: 500px;
            margin: 0 auto;
        }

        .form-step {
            display: none;
        }

        .form-step.active {
            display: block;
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--primary);
        }

        .input-with-icon {
            position: relative;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
            opacity: 0.7;
            z-index: 2;
        }

        .input-with-icon input,
        .input-with-icon textarea,
        .input-with-icon select {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 1px solid #e1e5e9;
            border-radius: 10px;
            font-size: 1rem;
            background: #f8f9fa;
            transition: var(--transition);
            font-family: 'Inter', sans-serif;
        }

        .input-with-icon input:focus,
        .input-with-icon textarea:focus,
        .input-with-icon select:focus {
            outline: none;
            border-color: var(--accent);
            background: white;
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        }

        .input-with-icon input.error,
        .input-with-icon textarea.error,
        .input-with-icon select.error {
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
        }

        .input-with-icon .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: none;
            cursor: pointer;
            color: var(--secondary);
        }

        .checkbox-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-container input[type="checkbox"] {
            margin: 0;
        }

        .checkbox-container .checkmark {
            width: 18px;
            height: 18px;
            border: 2px solid #e1e5e9;
            border-radius: 4px;
            display: inline-block;
            position: relative;
        }

        .checkbox-container input[type="checkbox"]:checked + .checkmark {
            background: var(--accent);
            border-color: var(--accent);
        }

        .checkbox-container input[type="checkbox"]:checked + .checkmark::after {
            content: '\2713';
            color: white;
            font-size: 12px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .step-actions {
            margin-top: 30px;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }

        .btn-prev,
        .btn-next,
        .btn-register {
            padding: 12px 24px;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-prev {
            background: #f8f9fa;
            color: var(--secondary);
            border: 1px solid #e1e5e9;
        }

        .btn-prev:hover {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        .btn-next,
        .btn-register {
            background: var(--accent);
            color: var(--primary);
        }

        .btn-next:hover,
        .btn-register:hover {
            background: #c19b2a;
            transform: translateY(-2px);
            box-shadow: var(--shadow-hover);
        }

        .btn-register .btn-loader {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .btn-register.loading .btn-text {
            opacity: 0;
        }

        .btn-register.loading .btn-loader {
            display: block;
        }

        .register-footer {
            text-align: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e1e5e9;
        }

        .register-footer p {
            color: var(--secondary);
            font-size: 0.9rem;
        }

        .link {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
        }

        .link:hover {
            color: var(--accent);
        }

        /* Profile Picture Upload Styles */
        .profile-picture-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
        }

        .profile-preview {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            border: 3px solid var(--accent);
            overflow: hidden;
            margin-bottom: 15px;
            position: relative;
            background-color: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .profile-preview .placeholder {
            color: var(--secondary);
            font-size: 3rem;
        }

        .file-input-wrapper {
            position: relative;
            display: inline-block;
            width: 100%;
            max-width: 300px;
        }

        .file-input-wrapper input[type="file"] {
            position: absolute;
            left: 0;
            top: 0;
            opacity: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        .file-input-button {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            background: var(--primary);
            color: white;
            border-radius: 10px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            width: 100%;
        }

        .file-input-button:hover {
            background: #2d3748;
            transform: translateY(-2px);
        }

        .file-name {
            margin-top: 8px;
            font-size: 0.9rem;
            color: var(--secondary);
            text-align: center;
        }

        @media (max-width: 768px) {
            .progress-steps {
                flex-direction: column;
                gap: 20px;
                align-items: flex-start;
            }
            
            .progress-steps::before {
                display: none;
            }
            
            .step {
                flex-direction: row;
                gap: 15px;
            }
            
            .step-number {
                margin-bottom: 0;
            }
            
            .step-actions {
                flex-direction: column;
            }
            
            .btn-prev,
            .btn-next,
            .btn-register {
                width: 100%;
                justify-content: center;
            }
        }