/* ============================= */
/* AUTH PAGE (LOGIN & SIGNUP) */
/* ============================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.auth-overlay {
    width: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.6);

    display: flex;
    flex-direction: column; /* Added this line! */
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.auth-modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* Row layout (for first + last name) */
.auth-row {
    display: flex;
    gap: 16px;
}

.auth-row .auth-group {
    flex: 1;
}

.auth-group {
    margin-bottom: 18px;
}

.auth-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.auth-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    transition: 0.2s;
}

.auth-group input:focus {
    border-color: #000;
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.auth-button:hover {
    background-color: #333;
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-switch a {
    text-decoration: none;
    font-weight: bold;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-row {
        flex-direction: column;
        gap: 0;
    }
    .auth-modal {
        width: 100%;
        padding: 20px;
        border-radius: 12px;
    }
    
    .auth-brand .brand-text {
        font-size: 28px;
    }

    .auth-row {
        flex-direction: column;
    }

    .auth-group input {
        font-size: 16px;
    }
}
/* ============================= */
/* AUTH BRAND HEADER (Amazon Style) */
/* ============================= */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px; /* Pushes the white box down slightly */
}

.auth-brand .logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    background: #2563eb; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.auth-brand .brand-text {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff; /* White text so it pops against the dark grey background */
    letter-spacing: -0.5px;
}