

:root {
    --primary-blue: #167ab8;
    --primary-darker: #2a3f54;
    --primary-blue-hover: #167ab8;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #e0e0e0;
    --border-blue: #167ab8;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
 
        --primary:  #1479b8;
        --secondary: #6c757d;
        --dark: #212529;
        --light: #f8f9fa;
        --dark-bg: #1a1d20;
        --darker-bg: #15181b;
        --border-color: #2d3238;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.5;
}

.login-bg {
    background-color: var(--light-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header/Navbar */
.navbar {
    background-color: var(--white) !important;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

/* Main container */

/* main.container {
    min-height: calc(100vh - 150px); /* Adjust based on header/footer height */
    /* padding: 2rem 1rem !important; */
/* } */
.border-primarry{
    border-color: var(--primary-blue) !important;
}
/* .login-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.login-form-container, 
.register-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
} */

/* Headers */
.login-header,
.register-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
}

.login-header h2,
.register-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

/* Form body */
.login-body,
.register-body {
    padding: 0;
}

/* Form groups */
.form-group {
    margin-bottom: 2rem;
}

/* Form controls */
.input-login {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-left: 4px solid var(--primary-blue);
    background-color: var(--light-gray);
    color: var(--text-dark);
    border-radius: 0;
    transition: all 0.3s ease;
}

.input-login:focus {
    background-color: var(--white);
    border-left-color: var(--primary-blue);
    box-shadow: var(--shadow-light);
    outline: none;
}

.input-login::placeholder {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Form options row (keep me signed in + forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Checkbox styling */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    border: 2px solid var(--text-gray);
    border-radius: 3px;
    background-color: transparent;
    margin-top: 0;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: var(--primary-blue);
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0;
}

/* Forgot password link */
.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-blue-hover);
    text-decoration: none;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary,
.btn-login,
.btn-register {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    margin-bottom: 2rem;
}

.btn-primary:hover,
.btn-login:hover,
.btn-register:hover {
    background-color: var(--primary-blue-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-primary,
.btn-register-link,
.btn-login-link {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-outline-primary:hover,
.btn-register-link:hover,
.btn-login-link:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* Register/Login sections */
.register-section,
.login-section {
    text-align: center;
    margin-top: 2rem;
}

.register-section p,
.login-section p {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Form text */
.form-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
a {
    color: var(--primary-blue);
}
/* Terms checkbox */
.form-check .form-check-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.text-primary{
    color: var(--primary-blue);  
}

.form-check .form-check-label a:hover {
    text-decoration: underline;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 2rem;
    padding: 1rem;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert li {
    margin-bottom: 0.25rem;
}

/* Footer */
.auth-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-gray);
    margin-top: auto;
}

.auth-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-header h2,
    .register-header h2 {
        font-size: 2rem;
    }
    
    .input-login {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-login,
    .btn-register {
        font-size: 1.1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    main.container {
        padding: 2rem 1rem;
    }
    
    .navbar-brand img {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .login-header h2,
    .register-header h2 {
        font-size: 1.75rem;
    }
    
    .input-login {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-primary,
    .btn-login,
    .btn-register {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
        color: #167ab8;
    }
    
    main.container {
        padding: 1.5rem 1rem;
    }
}

/* Remove Bootstrap default margins */
.mb-3,
.mb-1,
.mb-0,
.mb-4 {
    margin-bottom: 0 !important;
}

/* Ensure proper spacing */
.row {
    margin: 0;
}

.col-md-6 .form-group {
    margin-bottom: 1.5rem;
}

/* Clean focus states */
.btn:focus,
.input-login:focus {
    outline: none;
}

.btn:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(25, 118, 210, 0.25);
}

/* Fix for validation display */
.d-none {
    display: none !important;
}

/* Make sure links in form check labels work properly */
.form-check-label {
    cursor: pointer;
    user-select: none;
}

 .card {
            border-radius: 10px;
            border: none;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            height: 100%;
            background: linear-gradient(to bottom right, #f8f9fa, #e9ecef);
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }
        .card-title {
            color: #2c3e50;
            font-weight: 600;
            margin-bottom: 20px;
            font-size: 1.25rem;
        }

        .contact-section {
            background-color: #e9ecef;
            padding: 20px 0;
            border-radius: 10px 10px 0 0;
            margin-top: 40px;
        }
        .contact-info {
            font-weight: 500;
            color: #2c3e50;
        }
        .footer-links a {
            color: #1a237e;
            text-decoration: none;
            margin: 0 15px;
            font-weight: 500;
            transition: color 0.3s;
        }
        .footer-links a:hover {
            color: #283593;
            text-decoration: underline;
        }
        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #1a237e;
        }
        .divider {
            height: 1px;
            background: linear-gradient(to right, transparent, #adb5bd, transparent);
            margin: 25px 0;
        }
        .icon-img{
            padding-bottom: 10px;
            width: 100px;
            height: 100px;
            margin: auto;

        }
   /* REGISTRATION */
.skyfares-header {
    background: #ffffff;
    color: #8c8c8c;
    padding: 12px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}



.registration-card {
    background: white;
    /* border-radius: 12px; */
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    width: 100%;
    /* max-width: 1200px; */
}

.registration-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0b5ed7 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}
.registration-sidebar{
    background-color: var(--primary-darker);
}
.registration-body {
    background: white;

}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
}

/* .form-control {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(20, 121, 184, 0.25);
} */
.input-login {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s;
}
.input-registration{
    border-radius: 0px;
}

.input-login:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(20, 121, 184, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.password-toggle {
    cursor: pointer;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.btn-register {
    background: linear-gradient(to right, var(--primary), #0b5ed7);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-register:hover {
    background: linear-gradient(to right, #0b5ed7, #0a58ca);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.password-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.strength-weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-medium {
    background-color: #ffc107;
    width: 50%;
}

.strength-good {
    background-color: #17a2b8;
    width: 75%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Validation styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(20, 121, 184, 0.1);
    color: var(--primary);
    font-weight: 600;
}

@media (max-width: 992px) {
    .registration-container {
        /* padding: 1rem; */
    }
    
    .registration-body {
        /* padding: 1.5rem; */
    }
}

/* JUMBOTRON STYLES
 REGISTRATION PAGE
 */
 .slider-text {
    font-weight: bold;
    transition: opacity 0.6s ease-in-out;
    font-size: 3.0rem;
    color: var(--primary-darker);
    text-shadow: 2px 2px 4px rgba(215, 210, 210, 0.5);
  }
  /* Validation Error Styles */
.is-invalid {
    border-color: #dc3545 !important;
    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 3.6.4.4.4-.4'/%3e%3cpath d='M6 7v1'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: 2.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    font-weight: 500;
    background-color: rgba(220, 53, 69, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
    width: 100%;
    box-sizing: border-box;
}

/* For checkboxes and radio buttons */
.form-check-input.is-invalid ~ .form-check-label,
.form-check-input.is-invalid ~ .invalid-feedback {
    color: #dc3545;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Alert box styling */
.alert-warning {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    color: #721c24;
    border-radius: 4px;
}

.alert-warning ul {
    margin-bottom: 0;
}


/* Additional styles for the login form */
.login-form-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.login-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
}

.input-login {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: none;
    border-left: 4px solid var(--primary-blue);
    background-color: var(--light-gray);
    color: var(--text-dark);
    border-radius: 0;
    transition: all 0.3s ease;
}

.input-login:focus {
    background-color: var(--white);
    border-left-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(22, 122, 184, 0.25);
    outline: none;
}

.btn-login {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Error message styling for right-aligned layout */
.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 3px solid #dc3545;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Ensure proper alignment of form rows */
.form-group .row.align-items-center {
    align-items: flex-start !important;
}

/* Responsive adjustments for error messages */
@media (max-width: 768px) {
    .form-group .row.align-items-center > .col-md-4 {
        margin-top: 0.5rem;
        padding-left: 15px;
    }
    
    .alert-danger {
        margin-top: 0.25rem;
        margin-bottom: 1rem;
    }
}
/* CAPTCHA Styles */
.captcha-container {
    margin-bottom: 1rem;
}

.captcha-image-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.captcha-image {
    flex-grow: 1;
    height: 60px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #1479b8;
}

#refreshCaptcha {
    height: 38px;
}
/* Center the form and improve layout */
.registration-container .container {
    /* max-width: 1200px; */
    /* margin: 0 auto; */
}

.registration-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.registration-body {
    padding: 2rem;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control, .form-select {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #1479b8;
    box-shadow: 0 0 0 0.2rem rgba(20, 121, 184, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

/* Card improvements */
.card {
    margin-bottom: 1.5rem;
    border: 1px solid #e0e0e0;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Button improvements */
.btn-register {
    background-color: #1479b8;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-register:hover {
    background-color: #0d6efd;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: #1479b8;
    color: #1479b8;
}

.btn-outline-primary:hover {
    background-color: #1479b8;
    border-color: #1479b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .registration-body {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Error message improvements */
.invalid-feedback {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Checkbox and radio improvements */
.form-check-input {
    margin-top: 0.2rem;
}

.form-check-label {
    margin-left: 0.5rem;
}

/* CAPTCHA improvements */
.captcha-image {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-family: monospace;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    text-align: center;
}

/* Password strength meter */
.password-strength {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.strength-weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-medium {
    background-color: #ffc107;
    width: 50%;
}

.strength-good {
    background-color: #17a2b8;
    width: 75%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}