/* ===============================================
   GLOBAL STYLES & RESETS
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f5f7fa;
}

/* This ensures the header doesn't cover content when fixed */
body {
    padding-top: 70px;
}


/* ===============================================
   HEADER & NAVIGATION
   =============================================== */

/* Fixed header that stays at the top while scrolling */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

/* Navbar logo/title styling */
.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #5b8aaf !important;
    letter-spacing: -0.5px;
}

/* Navigation link styling */
.nav-link {
    color: #333 !important;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: #4a7c9f !important;
}

/* Active navigation link - highlighted for current page */
.nav-link.active {
    color: #4a7c9f !important;
}

/* Register button in navigation */
.navbar-nav .btn-primary {
    background-color: #5b8aaf !important;
    border-color: #5b8aaf !important;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.navbar-nav .btn-primary:hover {
    background-color: #4a7c9f !important;
    border-color: #4a7c9f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 138, 175, 0.3);
}

/* Active state for register button in navigation */
.navbar-nav .btn-primary.active {
    background-color: #4a7c9f !important;
    border-color: #4a7c9f !important;
}


/* ===============================================
   REGISTRATION SECTION (Main Container)
   =============================================== */

/* Full height section to center the registration card vertically */
.register-section {
    min-height: calc(100vh - 70px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

/* Center registration container horizontally */
.container {
    display: flex;
    justify-content: center;
}

/* White card container for registration form */
.register-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}


/* ===============================================
   REGISTRATION HEADER (Simple Title Header)
   =============================================== */

/* Header container with title centered */
.register-header {
    padding: 2rem 2rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

/* "Create Account" title styling */
.register-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5b8aaf;
    margin: 0;
}


/* ===============================================
   FORM STYLING
   =============================================== */

/* Main form container with padding */
.auth-form {
    padding: 2.5rem 2rem 2rem 2rem;
}

/* Individual form group (label + input pair) */
.form-group {
    margin-bottom: 1.5rem;
}

/* Form labels - uppercase, small, gray */
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Input field styling */
.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    color: #1a1a1a;
}

/* Placeholder text styling */
.form-input::placeholder {
    color: #9ca3af;
}

/* Input focus state - blue border with shadow */
.form-input:focus {
    outline: none;
    border-color: #5b8aaf;
    box-shadow: 0 0 0 3px rgba(91, 138, 175, 0.1);
}


/* ===============================================
   TERMS AND CONDITIONS CHECKBOX
   =============================================== */

/* Container for checkbox and terms text */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* Custom checkbox styling */
.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    cursor: pointer;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Checkbox focus state */
.form-check-input:focus {
    border-color: #5b8aaf;
    box-shadow: 0 0 0 3px rgba(91, 138, 175, 0.1);
}

/* Checkbox checked state */
.form-check-input:checked {
    background-color: #5b8aaf;
    border-color: #5b8aaf;
}

/* Terms and conditions label text */
.terms-label {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    cursor: pointer;
}

/* Links within terms text (Terms and Conditions, Privacy Policy) */
.terms-link {
    color: #5b8aaf;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: #4a7c9f;
    text-decoration: underline;
}


/* ===============================================
   REGISTER BUTTON
   =============================================== */

/* Primary registration button */
.btn-register {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background-color: #5b8aaf;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Hover state for register button */
.btn-register:hover {
    background-color: #4a7c9f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 138, 175, 0.3);
}

/* Active/pressed state for register button */
.btn-register:active {
    transform: translateY(0);
}


/* ===============================================
   LOGIN PROMPT (Bottom Link)
   =============================================== */

/* Container for "Already have an account? Login here" */
.login-prompt {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* "Already have an account?" text */
.prompt-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* "Login here" link styling */
.login-link {
    color: #5b8aaf;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: #4a7c9f;
    text-decoration: underline;
}


/* ===============================================
   FOOTER
   =============================================== */

/* Main footer container */
.footer {
    background: #f9fafb;
    padding: 2rem 0;
    margin-top: auto;
}

/* Footer content layout */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Footer brand/logo */
.footer .fw-bold.text-primary,
.footer .fw-bold {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #5b8aaf !important;
}

/* Copyright text */
.footer .text-muted {
    font-size: 0.9rem;
    color: #6b7280 !important;
}

/* Footer links container */
.footer-links {
    display: flex;
    gap: 2rem;
}

/* Individual footer links */
.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #4a7c9f;
}


/* ===============================================
   RESPONSIVE DESIGN - TABLETS
   =============================================== */

@media (max-width: 768px) {
    /* Reduce registration card padding on tablets */
    .register-card {
        max-width: 90%;
    }
    
    .auth-form {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    /* Adjust registration section height on tablets */
    .register-section {
        min-height: calc(100vh - 70px - 100px);
    }
}


/* ===============================================
   RESPONSIVE DESIGN - MOBILE PHONES
   =============================================== */

@media (max-width: 576px) {
    /* Full width registration card on mobile with less margin */
    .register-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* Reduce form padding on mobile */
    .auth-form {
        padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    }
    
    /* Stack footer content vertically on mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Stack footer links vertically on mobile */
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Adjust registration section for smaller mobile screens */
    .register-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    /* Smaller terms label text on mobile */
    .terms-label {
        font-size: 0.8rem;
    }
}


/* =====================================================
   FORM VALIDATION STYLES (Additional Enhancement)
   ===================================================== */

/* Error state for invalid inputs */
.form-input.is-invalid {
    border-color: #dc3545;
}

.form-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Success state for valid inputs */
.form-input.is-valid {
    border-color: #28a745;
}

.form-input.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Error state for unchecked required checkbox */
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}