/* ===============================================
   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);
}


/* ===============================================
   LOGIN SECTION (Main Container)
   =============================================== */

/* Full height section to center the login card vertically */
.login-section {
    min-height: calc(100vh - 70px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

/* Center login container horizontally */
.container {
    display: flex;
    justify-content: center;
}

/* White card container for login form */
.login-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;
}


/* ===============================================
   LOGIN HEADER (Simple Title Header)
   =============================================== */

/* Header container with title centered */
.login-header {
    padding: 2rem 2rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

/* "Login" title styling */
.login-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;
}

/* Password label row with "Forgot?" link */
.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* "Forgot?" link styling */
.forgot-link {
    font-size: 0.875rem;
    color: #5b8aaf;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #4a7c9f;
    text-decoration: underline;
}

/* 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);
}


/* ===============================================
   LOGIN BUTTON
   =============================================== */

/* Primary login/register button */
.btn-login {
    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 login button */
.btn-login:hover {
    background-color: #4a7c9f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 138, 175, 0.3);
}

/* Active/pressed state for login button */
.btn-login:active {
    transform: translateY(0);
}


/* ===============================================
   SIGNUP PROMPT (Bottom Link)
   =============================================== */

/* Container for "New to World Hotels? Create an account" */
.signup-prompt {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* "New to World Hotels?" text */
.prompt-text {
    color: #6b7280;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* "Create an account" link styling */
.signup-link {
    color: #5b8aaf;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.signup-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 login card padding on tablets */
    .login-card {
        max-width: 90%;
    }
    
    .auth-form {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    /* Adjust login section height on tablets */
    .login-section {
        min-height: calc(100vh - 70px - 100px);
    }
}


/* ===============================================
   RESPONSIVE DESIGN - MOBILE PHONES
   =============================================== */

@media (max-width: 576px) {
    /* Full width login card on mobile with less margin */
    .login-card {
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* Reduce form padding on mobile */
    .auth-form {
        padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    }
    
    /* Smaller tab text on mobile */
    .auth-tab {
        font-size: 0.9rem;
        padding: 1rem 0.75rem;
    }
    
    /* 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 login section for smaller mobile screens */
    .login-section {
        min-height: auto;
        padding: 2rem 0;
    }
}


/* ===============================================
   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);
}