/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    /* We remove padding from body and let the container handle it */
    margin: 0;
    
    /* --- BACKGROUND IMAGE SETTINGS (Kept your original path) --- */
    background-image: url('../img/login-signup-page-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Dark Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: -1; 
}

/* ================= NAVBAR ================= */
.navbar {
    background: rgba(255, 182, 213, 0.95); 
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; /* Simplified padding */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    height: 64px; /* Fixed height for consistency */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: Georgia, 'Times New Roman', serif; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.navbar a:hover {
    background: rgba(255,255,255,0.2);
}

/* ================= CENTERED CONTAINER ================= */
/* This is what fixes the mobile alignment */
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 80px 20px 40px; /* Top padding clears fixed navbar */
    width: 100%;
}

/* ================= FORM CARD ================= */
.signup-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* No margin auto needed because parent is flex */
}

.signup-form h2 {
    text-align: center;
    color: #ff4e97;
    margin-bottom: 25px;
    font-size: 2rem;
    font-family: Georgia, serif;
}

/* ================= INPUTS & LABELS ================= */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ffe4e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff; 
}

input:focus {
    outline: none;
    border-color: #ff4e97;
    box-shadow: 0 0 0 3px rgba(255, 78, 151, 0.2);
}

/* ================= BUTTON ================= */
.btn-signup {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff4e97 0%, #ff8eb4 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(255, 78, 151, 0.3);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 78, 151, 0.4);
    background: linear-gradient(135deg, #ff3d8b 0%, #ff7ba9 100%);
}

.login-link {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

.login-link a {
    color: #ff4e97;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 480px) {
    .signup-container {
        padding: 80px 15px 30px; /* Tighter padding on mobile sides */
        align-items: flex-start; /* Prevents cutting off top on small landscape screens */
    }

    .signup-form {
        padding: 25px 20px;
    }

    .signup-form h2 {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 32px;
    }
}