html, body {
    font-family: 'Baloo 2', 'Inter', sans-serif;
}

body, header, .main-header, .main-nav, .nav-left, .nav-right {
    font-family: 'Baloo 2', 'Inter', sans-serif !important;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #4b6cb7;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #182848, #4b6cb7);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #182848, #4b6cb7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    position: relative;
}

body::before {
    content: none;
}

body.dark-mode {
    background: #4a6fa5 !important;
}

.auth-section {
    padding: 60px 0;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Baloo 2', 'Inter', sans-serif;
    background: #4a6fa5;
    position: relative;
    z-index: 1;
}

.auth-form-container {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
    padding: 0.7rem 3.5rem;
    position: relative;
    max-height: 95vh;
    overflow: auto;
    z-index: 1;
}

.card-accent {
    position: absolute;
    top: 12px;
    right: 18px;
    width: auto;
    height: auto;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    z-index: 2;
}

.card-accent i {
    color: #fff;
    font-size: 1.3rem;
    margin-top: 0;
    background: var(--primary-color);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.10);
    border: 4px solid #fff;
    aspect-ratio: 1/1;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-title {
    text-align: start;
    color: #4a6fa5;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
    font-family: 'Baloo 2', 'Inter', sans-serif;
    position: relative;
}

.form-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #4a6fa5;
    border-radius: 2px;
    margin-top: 0.5rem;
}

.auth-form .form-group {
    margin-bottom: 0.6rem;
}

.auth-form label {
    font-size: 0.97rem;
}

.auth-form input, .auth-form select {
    font-size: 0.97rem;
    padding: 10px 12px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2.5px solid #4a6fa5;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7faff;
    transition: border-color 0.2s;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.10);
}

.auth-form input::placeholder {
    color: #888;
    opacity: 0.8;
}

.auth-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background: #f7faff;
    transition: border-color 0.2s;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin-top: 0.2rem;
}

.auth-form select:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.10);
}

.auth-form select option {
    color: #333;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-button {
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.97rem;
    font-family: 'Baloo 2', 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 1px 4px rgba(74, 111, 165, 0.06);
    text-align: center;
    height: 44px;
    line-height: 44px;
    min-width: 100px;
    padding: 0 18px;
}

.form-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
}

.form-button span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.form-button:hover, .form-button:focus {
    background-color: #3a5a8a;
    color: white;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.97rem;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.auth-message {
    margin-top: 1rem;
    font-size: 0.93rem;
    padding: 0.7rem;
    border-radius: 6px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.auth-message.success {
    background-color: #e6f7e6;
    color: var(--success-color);
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: none; }
}

/* Dark mode styles */
body.dark-mode .auth-section {
    background: #4a6fa5;
}

body.dark-mode .auth-form-container {
    background: #1a1a1a;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.25);
}

body.dark-mode .auth-form input {
    background: #23263a;
    color: #eaeaea;
    border-color: #23263a;
}

body.dark-mode .auth-form input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.10);
}

body.dark-mode .auth-form input::placeholder {
    color: #bdbdbd;
}

body.dark-mode .auth-links {
    color: #bdbdbd;
}

body.dark-mode .auth-message.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: rgba(39, 174, 96, 0.2);
}

body.dark-mode .auth-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
}

/* Responsive styles */
@media (max-width: 600px) {
    .auth-section {
        padding: 40px 20px;
    }
    
    .auth-form-container {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 1.2rem;
    }
    
    .auth-form input {
        font-size: 0.95rem;
    }
    
    .form-button {
        width: 100%;
        justify-content: center;
    }
}

.form-columns {
    display: flex;
    gap: 2.2rem;
}

.form-col-left, .form-col-right {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-col-right .form-actions {
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 700px) {
    .form-columns {
        flex-direction: column;
        gap: 0.5rem;
    }
    .form-col-left, .form-col-right {
        gap: 0.5rem;
    }
}

/* NavBar Login/Register Button Styles - Now using standard button styles from main.css */

main.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

footer {
    background: #fff !important;
    color: #222 !important;
}

/* Custom Checkbox Styling for Terms and Privacy */
.checkbox-group {
    margin-bottom: 0.4rem !important;
}

.checkbox-container {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 4px 0 !important;
    line-height: 1.4 !important;
    font-size: 0.95rem !important;
}

.checkbox-container input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}

.checkmark {
    position: relative !important;
    height: 20px !important;
    width: 20px !important;
    background: #f7faff !important;
    border: 2px solid #4a6fa5 !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    transition: all 0.2s ease !important;
}

.checkbox-container:hover .checkmark {
    background: #eef4ff !important;
    border-color: #3a5a8a !important;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: #4a6fa5 !important;
    border-color: #4a6fa5 !important;
}

.checkmark:after {
    content: "" !important;
    position: absolute !important;
    display: none !important;
    left: 6px !important;
    top: 2px !important;
    width: 6px !important;
    height: 10px !important;
    border: solid white !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block !important;
}

.checkbox-container a {
    color: #4a6fa5 !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.checkbox-container a:hover {
    color: #3a5a8a !important;
    text-decoration: none !important;
}

/* Focus styles for accessibility */
.checkbox-container input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2) !important;
    outline: none !important;
}

/* Dark mode checkbox styles */
body.dark-mode .checkmark {
    background: #23263a !important;
    border-color: #4a6fa5 !important;
}

body.dark-mode .checkbox-container:hover .checkmark {
    background: #2a2f47 !important;
    border-color: #5a7fb5 !important;
}

body.dark-mode .checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background: #4a6fa5 !important;
    border-color: #4a6fa5 !important;
}

body.dark-mode .checkbox-container {
    color: #eaeaea !important;
}

body.dark-mode .checkbox-container a {
    color: #6b9bd5 !important;
}

body.dark-mode .checkbox-container a:hover {
    color: #8bb1e5 !important;
}

/* Responsive adjustments for checkboxes */
@media (max-width: 600px) {
    .checkbox-container {
        font-size: 0.9rem !important;
        gap: 10px !important;
    }
    
    .checkmark {
        height: 18px !important;
        width: 18px !important;
    }
    
    .checkmark:after {
        left: 5px !important;
        top: 1px !important;
        width: 5px !important;
        height: 9px !important;
    }
} 