/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    /* --- BACKGROUND IMAGE FIX --- */
    /* UPDATED: Using a relative path to ensure it works on live hosting */
    background-image: url('../img/login-signup-page-bg.jpg');
    
    /* Ensure the background covers the entire screen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Dark overlay to ensure the white form is readable against the photo */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjust the opacity (0.4) to make the image lighter or darker */
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(255, 182, 213, 0.9); /* Semi-transparent pink */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    width: 100%;
    min-height: 64px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar .logo {
    height: 48px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
}

/* --- UPDATED: Consistent Brand Name Style --- */
.navbar .name {
    color: #fff;
    font-size: 2rem; /* Consistent size */
    font-weight: 700; /* Bold weight */
    letter-spacing: 1px;
    /* Use a serif font for elegance, matching the 'luxury' vibe */
    font-family: Georgia, 'Times New Roman', serif; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0;
    margin-right: 40px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
    padding: 8px 16px;
    border-radius: 6px;
}

.navbar-links a:hover {
    background: rgba(255,255,255,0.2);
}

/* ================= LOGIN CONTAINER ================= */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px; /* Top padding clears the navbar */
    position: relative;
    z-index: 1; /* Ensures form sits on top of the overlay */
}

/* ================= FORM STYLES ================= */
form {
    background: rgba(255, 255, 255, 0.95); /* White with slight transparency */
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

form:hover {
    transform: translateY(-5px);
}

h2 {
    text-align: center;
    color: #ff4e97;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #ff4e97;
    box-shadow: 0 0 0 3px rgba(255, 78, 151, 0.2);
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4e97 0%, #ff8eb4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(255, 78, 151, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 78, 151, 0.4);
    background: linear-gradient(135deg, #ff3d8b 0%, #ff7ba9 100%);
}

.signup-link {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
}

.signup-link a {
    color: #ff4e97;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #d6336c;
    text-decoration: underline;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 480px) {
    .navbar {
        padding: 0 15px;
    }
    
    .navbar .name {
        font-size: 1.4rem;
    }

    form {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    h2 {
        font-size: 24px;
    }
}