/* Modern Login Page Styles for HakiTume Sacco Banking Application */

.login-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-modern::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 420px;
    z-index: 10;
    position: relative;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Expanded container for complex forms like register */
.login-container.expanded {
    max-width: 600px;
}

@media (min-width: 768px) {
    .login-container.expanded {
        max-width: 680px;
    }
}

@media (min-width: 992px) {
    .login-container.expanded {
        max-width: 750px;
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 40px;
    position: relative;
    animation: slideUp 0.6s ease-out;
    margin: 0 auto;
    max-height: none;
    width: 100%;
    box-sizing: border-box;
}

/* Enhanced padding for expanded forms */
.login-container.expanded .login-card {
    padding: 50px 60px;
}

@media (max-width: 768px) {
    .login-container.expanded .login-card {
        padding: 40px 30px;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2FA Verification Specific Styles */
.verification-container {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.verification-logo {
    margin-bottom: 3rem;
}

.verification-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.verification-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.verification-inputs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 2.5rem 0;
}

.verification-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #f8f9fa;
    color: #2c3e50;
    transition: all 0.2s ease;
    outline: none;
}

.verification-digit:focus {
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.verification-digit:not(:placeholder-shown) {
    border-color: #28a745;
    background-color: #ffffff;
}

.verification-continue-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.verification-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, #ff5722, #f57c00);
}

.verification-back-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #6c757d;
    border-radius: 50px;
    color: #6c757d;
    background: transparent;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.verification-back-btn:hover {
    border-color: #495057;
    color: #495057;
    transform: translateY(-1px);
}

.verification-resend {
    font-size: 0.95rem;
    color: #6c757d;
}

.verification-resend-btn {
    color: #007bff;
    text-decoration: none;
    border: none;
    background: none;
    padding: 0;
    font-weight: 600;
    margin-left: 0.5rem;
}

.verification-resend-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Mobile Responsiveness for 2FA */
@media (max-width: 576px) {
    .verification-container {
        padding: 1rem 0.5rem;
    }
    
    .verification-inputs {
        gap: 0.5rem;
    }
    
    .verification-digit {
        width: 40px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .verification-title {
        font-size: 1.7rem;
    }
}

/* Animation for loading */
.verification-continue-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.verification-continue-btn.loading {
    position: relative;
    color: transparent;
}

.verification-continue-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Existing styles continue... */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 11px;
    font-weight: 500;
    background: rgba(40, 167, 69, 0.08);
    padding: 6px 10px;
    border-radius: 16px;
    border: 1px solid rgba(40, 167, 69, 0.15);
    white-space: nowrap;
}

.security-badge i {
    font-size: 10px;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    margin-bottom: 15px;
}

.login-logo h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 26px;
}

.login-logo p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 0;
    font-weight: 400;
}

/* Validation feedback for simplified forms */
.form-group .invalid-feedback,
.form-group .valid-feedback {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
}

.form-group .invalid-feedback {
    color: #dc3545;
}

.form-group .valid-feedback {
    color: #28a745;
}

/* Simplified Form Styles - replacing complex floating labels */
.form-group {
    margin-bottom: 20px;
}

/* Enhanced spacing for expanded forms */
.login-container.expanded .form-group {
    margin-bottom: 24px;
}

.login-container.expanded .row .col-md-6 .form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-control {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    font-weight: 400;
    color: #2d3748;
}

/* Enhanced form controls for expanded containers */
.login-container.expanded .form-control {
    height: 52px;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 14px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    background: #ffffff;
    color: #2d3748;
}

.form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Select fields */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select.form-control option {
    color: #2d3748;
    background: #ffffff;
    background-color: #ffffff;
    padding: 12px 16px;
    border: none;
}

select.form-control optgroup {
    color: #4a5568;
    background: #f7fafc;
    background-color: #f7fafc;
    font-weight: 600;
}

/* Password toggle positioning for simplified forms */
.form-group.position-relative .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    z-index: 10;
    padding: 4px;
    margin-top: 14px; /* Account for label height */
}

/* Adjusted positioning for expanded forms */
.login-container.expanded .form-group.position-relative .password-toggle {
    right: 18px;
    margin-top: 16px;
}

.form-group.position-relative .password-toggle:hover {
    color: #667eea;
}

/* Form Styles */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

  .form-floating input {
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 50px 6px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff !important;
    width: 100%;
    font-weight: 400;
    color: #2d3748 !important;
  }

.form-floating input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    outline: none;
    background: #ffffff !important;
    color: #2d3748 !important;
}

.form-floating input::placeholder {
    color: #6b7280; /* Changed from #a0aec0 to a darker gray for better visibility */
    opacity: 1; /* Ensure full opacity */
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #6b7280; /* Also updated to match placeholder color */
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label {
    top: 8px;
    font-size: 12px;
    color: #667eea;
    transform: translateY(0);
    font-weight: 500;
}

.form-floating input:focus + label i,
.form-floating input:not(:placeholder-shown) + label i {
    color: #667eea;
}

/* Button Styles */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 14px;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 13px;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Alert Styles */
.alert-modern {
    border: none;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    font-weight: 500;
}

.alert-info {
    background: rgba(23, 162, 184, 0.08);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
    border-radius: 12px;
    padding: 14px;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.08);
    color: #856404;
    border-left: 4px solid #ffc107;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a0aec0;
    z-index: 5;
    transition: color 0.3s ease;
    font-size: 16px;
}

.password-toggle:hover {
    color: #667eea;
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3c/path fill='%2328a745' d='m2.3 6.73.8-.77 2.13-2.13-.84-.85L2.4 4.96l-.7-.7-.85.85'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 45px center;
    background-size: 16px;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 4.4 4.4m0-4.4-4.4 4.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 45px center;
    background-size: 16px;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #dc3545 !important;
    display: block !important;
    font-weight: 500;
    background: transparent !important;
}

.valid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #28a745 !important;
    display: block !important;
    font-weight: 500;
}

/* Fix for form floating containers to prevent validation message overlap */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

/* Ensure validation messages don't inherit white color from form controls */
.form-floating .invalid-feedback,
.form-floating .valid-feedback {
    position: relative;
    z-index: 10;
    background: transparent !important;
    color: #dc3545 !important;
}

.form-floating .valid-feedback {
    color: #28a745 !important;
}

/* Override Bootstrap validation styles that might cause white text */
.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block !important;
    color: #28a745 !important;
}

/* Check box styles */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 0;
    font-weight: 400;
}

/* Trust indicators */
.trust-indicators {
    text-align: center;
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.trust-indicators small {
    color: #718096;
    line-height: 1.4;
}

/* Support Modal */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px 16px;
}

.modal-body {
    padding: 20px 24px 24px;
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Security Indicator */
.security-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(40, 167, 69, 0.2);
    z-index: 1000;
}

/* Caps Lock Warning */
.caps-lock-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Remember me and forgot password container */
.d-flex.justify-content-between {
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Responsive Design for Height-Constrained Screens */
@media (max-height: 800px) {
    .login-modern {
        align-items: flex-start;
        padding: 15px;
    }
    
    .login-container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .login-card {
        padding: 30px 35px;
    }
    
    .login-logo {
        margin-bottom: 15px;
    }
    
    .login-logo h2 {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .login-logo p {
        font-size: 13px;
    }
    
    .security-badges {
        margin: 15px 0 20px 0;
    }
    
    .form-floating {
        margin-bottom: 16px;
    }
    
    .trust-indicators {
        margin-top: 20px;
        padding-top: 12px;
    }
    
    .security-indicator {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 8px;
    }
}

@media (max-height: 700px) {
    .login-card {
        padding: 25px 30px;
    }
    
    .login-logo {
        margin-bottom: 12px;
    }
    
    .login-logo .fa-4x {
        font-size: 2.5rem !important;
        margin-bottom: 8px !important;
    }
    
    .login-logo h2 {
        font-size: 22px;
        margin-bottom: 3px;
    }
    
    .security-badges {
        margin: 12px 0 18px 0;
    }
    
    .form-floating {
        margin-bottom: 14px;
    }
    
    .form-floating input {
        height: 48px;
        padding: 16px 50px 4px 16px;
    }
    
    .btn-login {
        height: 48px;
    }
    
    .d-flex.justify-content-between {
        margin-bottom: 16px;
    }
    
    .trust-indicators {
        margin-top: 16px;
        padding-top: 10px;
    }
}

@media (max-height: 600px) {
    .login-modern {
        padding: 10px;
    }
    
    .login-container {
        padding-top: 5px;
        padding-bottom: 5px;
    }
    
    .login-card {
        padding: 20px 25px;
    }
    
    .login-logo {
        margin-bottom: 8px;
    }
    
    .login-logo .fa-4x {
        font-size: 2rem !important;
        margin-bottom: 6px !important;
    }
    
    .login-logo h2 {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .login-logo p {
        font-size: 12px;
    }
    
    .security-badges {
        margin: 8px 0 12px 0;
        gap: 4px;
    }
    
    .security-badge {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .form-floating {
        margin-bottom: 12px;
    }
    
    .form-floating input {
        height: 44px;
        padding: 14px 50px 4px 16px;
        font-size: 14px;
    }
    
    .btn-login {
        height: 44px;
        font-size: 15px;
    }
    
    .d-flex.justify-content-between {
        margin-bottom: 12px;
    }
    
    .trust-indicators {
        margin-top: 12px;
        padding-top: 8px;
    }
    
    .trust-indicators small {
        font-size: 11px;
    }
}

/* Regular responsive design for width */
@media (max-width: 768px) {
    .login-modern {
        padding: 15px;
    }
    
    .login-card {
        padding: 30px 25px;
        border-radius: 20px;
        margin: 0;
    }
    
    .security-badges {
        gap: 6px;
        margin: 15px 0 25px 0;
    }
    
    .security-badge {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .login-logo h2 {
        font-size: 22px;
    }
    
    .login-logo p {
        font-size: 13px;
    }
    
    .security-indicator {
        top: 15px;
        right: 15px;
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .form-check {
        order: 2;
        justify-content: center;
    }
    
    .forgot-password {
        text-align: center;
        order: 1;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 6px;
        align-items: center;
    }
    
    .login-card {
        padding: 25px 20px;
    }
}

/* Combined small screen and height adjustments */
@media (max-width: 480px) and (max-height: 700px) {
    .login-card {
        padding: 20px 16px;
    }
    
    .login-logo .fa-4x {
        font-size: 2rem !important;
    }
    
    .login-logo h2 {
        font-size: 18px;
    }
    
    .security-badges {
        margin: 8px 0 12px 0;
    }
}

/* Enhanced focus states for accessibility */
.form-floating input:focus,
.btn-login:focus,
.form-check-input:focus,
.forgot-password:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Improved button states */
.btn-login:focus-visible {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Additional security visual indicators */
.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 24px;
    z-index: -1;
}

/* jQuery Validation Override - Ensure validation messages are always visible */
.field-validation-error,
.field-validation-valid,
.input-validation-error,
span[data-valmsg-for] {
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
    display: block !important;
    background: transparent !important;
}

.field-validation-valid {
    color: #28a745 !important;
}

/* Ensure no white text anywhere in validation */
.login-card .invalid-feedback,
.login-card .valid-feedback,
.login-card .field-validation-error,
.login-card .field-validation-valid,
.login-card span[data-valmsg-for] {
    color: #dc3545 !important;
    background: transparent !important;
    text-shadow: none !important;
}

.login-card .valid-feedback,
.login-card .field-validation-valid {
    color: #28a745 !important;
}

/* Override any potential Bootstrap or other framework overrides */
.form-floating .invalid-feedback,
.form-floating .valid-feedback,
.form-floating .field-validation-error,
.form-floating .field-validation-valid {
    position: relative !important;
    z-index: 1000 !important;
    color: #dc3545 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 4px !important;
    margin-top: 8px !important;
}

.form-floating .valid-feedback,
.form-floating .field-validation-valid {
    color: #28a745 !important;
}

/* Additional styles for Register, Reset Password, and other auth pages */

/* Section Headers in Forms */
.text-primary.fw-bold {
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding-bottom: 8px;
    margin-bottom: 16px !important;
}

/* Enhanced Form Sections */
.form-section {
    background: rgba(102, 126, 234, 0.02);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Select Field Styling */
.form-floating select {
    height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px 6px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff !important;
    width: 100%;
    font-weight: 400;
    color: #2d3748 !important;
    cursor: pointer;
}

.form-floating select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
    outline: none;
}

.form-floating select option {
    color: #2d3748;
    background: #ffffff;
    padding: 10px;
}

/* Success/Confirmation Pages Styling */
.fa-4x {
    font-size: 3rem !important;
}

.text-success {
    color: #28a745 !important;
}

/* Enhanced Alert Styling for Success */
.alert-success {
    background: rgba(40, 167, 69, 0.08);
    color: #155724;
    border-left: 4px solid #28a745;
    border-radius: 12px;
    padding: 14px;
}

/* Button Variations */
.btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
    border-radius: 14px;
    height: 52px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Terms and Conditions Checkbox */
.form-check {
    padding: 16px;
    background: rgba(102, 126, 234, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.08);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.password-strength.weak {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.password-strength.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.password-strength.strong {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

/* Mobile Responsiveness for Register Form */
@media (max-width: 768px) {
    .row .col-md-6 {
        margin-bottom: 0;
    }
    
    .row .col-md-6 .form-floating {
        margin-bottom: 16px;
    }
    
    .text-primary.fw-bold {
        font-size: 14px;
        margin-bottom: 12px !important;
    }
    
    .form-check {
        padding: 12px;
    }
}

/* Enhanced readonly field styling */
.form-floating input[readonly] {
    background-color: #f8f9fa !important;
    border-color: #dee2e6;
    color: #6c757d !important;
    cursor: not-allowed;
}

.form-floating input[readonly]:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

/* Confirmation page specific styling */
.confirmation-container {
    max-width: 400px;
    margin: 0 auto;
}

/* List styling in alerts */
.alert ul {
    margin-bottom: 0;
    padding-left: 0;
}

.alert ul li {
    list-style: none;
    margin-bottom: 4px;
}

/* Enhanced loading state for different buttons */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Support modal reference styling */
a[onclick*="showSupportModal"] {
    color: #667eea;
    cursor: pointer;
}

a[onclick*="showSupportModal"]:hover {
    color: #764ba2;
    text-decoration: underline !important;
}