/* OldRegister Page Styles */

/* Page Background */
body {
    background-color: var(--theme-bg-secondary, #f8f9fa);
}

/* Brand Header */
.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header img {
    max-width: 120px;
    margin-bottom: 1.5rem;
}

.register-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.register-header p {
    color: var(--theme-text-secondary);
    font-size: 1.125rem;
}

/* Main Card */
.register-card {
    background: var(--theme-surface-1, #ffffff);
    border: 1px solid var(--theme-border-color, transparent);
    border-radius: 0.75rem;
    box-shadow: var(--theme-shadow-sm, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
}

.register-card-body {
    padding: 2rem;
}

@media (min-width: 768px) {
    .register-card-body {
        padding: 2.5rem;
    }
}

/* Form Section Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--theme-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Form Controls */
.form-floating {
    margin-bottom: 1rem;
}

.form-floating .form-control {
    background-color: var(--theme-input-bg, #ffffff);
    color: var(--theme-text-primary);
    border: 1px solid var(--theme-input-border, #e5e7eb);
    height: 3.5rem;
    padding: 1rem 0.75rem;
}

.form-floating .form-control:focus {
    background-color: var(--theme-input-bg, #ffffff);
    color: var(--theme-text-primary);
    border-color: var(--theme-primary, #005bb7);
    box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb, 0, 91, 183), 0.25);
}

.form-floating label {
    color: var(--theme-text-muted, #6b7280);
    padding: 1rem 0.75rem;
}

.form-floating .form-control::placeholder {
    color: var(--theme-text-muted, #8a8a8a);
}

/* Postal Code Field Styling */
.postal-code-field {
    position: relative;
}

.postal-code-field .form-control {
    padding-right: 2.5rem;
}

.postal-code-field .postal-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text-muted);
    pointer-events: none;
}

/* Form Text Helper */
.form-text {
    font-size: 0.875rem;
    color: var(--theme-text-muted, #6b7280);
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Validation */
.text-danger {
    color: var(--theme-danger, #dc3545);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-control.is-invalid {
    border-color: var(--theme-danger, #dc3545);
}

/* Submit Button */
.btn-register {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background-color: var(--theme-primary, #0066cc);
    border-color: var(--theme-primary, #0066cc);
    color: white;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background-color: var(--theme-primary-dark, #004d99);
    border-color: var(--theme-primary-dark, #004d99);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb, 0, 102, 204), 0.25);
}

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

.btn-register:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-register i {
    margin-right: 0.5rem;
}

/* Footer Links */
.register-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.register-footer a {
    color: var(--theme-link, #3a9fff);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-footer a:hover {
    color: var(--theme-link-hover, #5eb0ff);
    text-decoration: underline;
}

.register-footer i {
    margin-right: 0.25rem;
}

/* Help Section */
.help-section {
    text-align: center;
    margin-top: 1.5rem;
}

.help-section p {
    color: var(--theme-text-muted, #6b7280);
    font-size: 0.875rem;
    margin: 0;
}

.help-section a {
    color: var(--theme-link, #3a9fff);
    text-decoration: none;
    font-weight: 500;
}

.help-section a:hover {
    color: var(--theme-link-hover, #5eb0ff);
    text-decoration: underline;
}

/* Loading State */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Dark Mode Adjustments */
.dark-mode body {
    background-color: var(--theme-bg-primary);
}

.dark-mode .register-card {
    background-color: var(--theme-surface-1);
    border-color: var(--theme-border-color);
}

.dark-mode .form-floating .form-control {
    background-color: var(--theme-input-bg);
    border-color: var(--theme-input-border);
    color: var(--theme-text-primary);
}

.dark-mode .form-floating .form-control:focus {
    background-color: var(--theme-input-bg);
    border-color: var(--theme-primary);
}

.dark-mode .form-floating label {
    color: var(--theme-text-muted);
}

/* Responsive Design */
@media (max-width: 576px) {
    .register-header h1 {
        font-size: 1.5rem;
    }
    
    .register-header p {
        font-size: 1rem;
    }
    
    .register-card-body {
        padding: 1.5rem;
    }
    
    .btn-register {
        font-size: 1rem;
    }
}