.register-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.register-form .container {
    display: flex;
    min-height: 100vh;
    padding-top: 0px;
}

/* Left Section */

.register-form .left-section {
    width: 40%;
    background: linear-gradient(135deg, #000a68 0%, #001a88 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 115vh;
    overflow-y: auto;
}

.register-form .logo {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 32px;
}

.register-form .headline {
    font-size: 36px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.register-form .subheadline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

.register-form .benefits {
    margin-bottom: 40px;
}

.register-form .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.register-form .benefit-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

    .register-form .benefit-icon::after {
        content: '✓';
        color: white;
        font-weight: bold;
        font-size: 14px;
    }

.register-form .benefit-content h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.register-form .benefit-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.register-form .trust-indicators {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.register-form .trust-item {
    text-align: center;
}

.register-form .trust-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.register-form .trust-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Right Section */

.register-form .right-section {
    width: 60%;
    background: white;
    padding: 170px 80px;
    overflow-y: auto;
}

.register-form .form-container {
    max-width: 600px;
    margin: 0 auto;
}

.register-form .form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.register-form .form-header p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Form Fields */

.register-form .form-section {
    margin-bottom: 32px;
}

.register-form .section-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 24px;
}

    .register-form .section-divider::before,
    .register-form .section-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

    .register-form .section-divider span {
        padding: 0 16px;
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
    }

.register-form .form-row {
    display: flex;
    gap: 4%;
    margin-bottom: 20px;
}

.register-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

    .register-form .form-group.half {
        flex: 1;
    }

.register-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

    .register-form label .required {
        color: #ef4444;
    }

.register-form .input-wrapper {
    position: relative;
}

.register-form .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="password"],
.register-form select {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

    .register-form input:focus,
    .register-form select:focus {
        border-color: #000a68;
        box-shadow: 0 0 0 3px rgba(0, 10, 104, 0.1);
    }

.register-form input.error {
    border-color: #ef4444;
}

.register-form input.success {
    border-color: #10b981;
}

.register-form .validation-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

    .register-form .validation-icon.success {
        color: #10b981;
    }

    .register-form .validation-icon.error {
        color: #ef4444;
    }

.register-form .error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Password Strength */

.register-form .password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
    background: #d1d5db;
}

    .register-form .password-strength-bar.weak {
        width: 33%;
        background: #ef4444;
    }

    .register-form .password-strength-bar.medium {
        width: 66%;
        background: #f59e0b;
    }

    .register-form .password-strength-bar.strong {
        width: 100%;
        background: #10b981;
    }

.register-form .password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    display: none;
}

    .register-form .password-requirements.show {
        display: block;
    }

.register-form .requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}

    .register-form .requirement:last-child {
        margin-bottom: 0;
    }

    .register-form .requirement.met {
        color: #10b981;
    }

.register-form .requirement-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    flex-shrink: 0;
}

.register-form .requirement.met .requirement-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.register-form .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
    width: 20px;
    height: 20px;
}

/* Referral Code */

.register-form .referral-info {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    font-size: 14px;
    color: #065f46;
}

    .register-form .referral-info.show {
        display: block;
    }

/* Checkbox */

.register-form .checkbox-group {
    margin-bottom: 24px;
}

.register-form .checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.register-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #000a68;
}

.register-form .checkbox-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    padding-top: 0;
}

    .register-form .checkbox-label a {
        color: #000a68;
        text-decoration: underline;
    }

/* Submit Button */

.register-form .submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #000a68 0%, #001a88 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

    .register-form .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 10, 104, 0.3);
    }

    .register-form .submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .register-form .submit-btn.loading {
        position: relative;
        color: transparent;
    }

        .register-form .submit-btn.loading::after {
            content: '';
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.register-form .login-link {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

    .register-form .login-link a {
        color: #000a68;
        font-weight: 600;
        text-decoration: none;
    }

        .register-form .login-link a:hover {
            text-decoration: underline;
        }

/* Auto-save Indicator */

.register-form .autosave-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

    .register-form .autosave-indicator.show {
        opacity: 1;
    }

/* Preview Modal */

.register-form .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .register-form .modal.show {
        display: flex;
    }

.register-form .modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.register-form .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .register-form .modal-header h3 {
        font-size: 24px;
        font-weight: 700;
        color: #1f2937;
    }

.register-form .modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #6b7280;
}

.register-form .preview-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

    .register-form .preview-section:last-child {
        border-bottom: none;
    }

    .register-form .preview-section h4 {
        font-size: 16px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 12px;
    }

.register-form .preview-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.register-form .preview-label {
    color: #6b7280;
}

.register-form .preview-value {
    color: #1f2937;
    font-weight: 500;
}

.register-form .modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.register-form .modal-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-form .modal-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.register-form .modal-btn-primary {
    background: linear-gradient(135deg, #000a68 0%, #001a88 100%);
    color: white;
    border: none;
}

/* Success Modal */

.register-form .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.register-form .success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 12px;
}

.register-form .success-message {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .left-section {
        display: none !important;
    }

    .container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

@media (max-width: 768px) {
    .register-form .container {
        flex-direction: column;
        padding-top: 70px;
    }

    .register-form .left-section {
        width: 100%;
        height: auto;
        position: relative;
        padding: 40px 24px;
    }

    .register-form .headline {
        font-size: 28px;
    }

    .register-form .subheadline {
        font-size: 16px;
    }

    .register-form .benefits {
        display: none;
    }

    .register-form .trust-indicators {
        justify-content: center;
    }

    .register-form .right-section {
        width: 100%;
        padding: 40px 30px;
    }

    .register-form .form-header h2 {
        font-size: 24px;
    }

    .register-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .register-form .form-group.half {
        width: 100%;
    }

    .register-form .modal-content {
        padding: 24px;
    }
}

/* Bootstrap Modal Overrides */
.modal-dialog-scrollable .modal-content {
    padding: 30px !important;
}
