@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@400;700&display=swap');
:root{
    --graphite: #333333;
    --chestnut: #852D29;
    --red: #D7271F;
    --red-orange: #E04F1D;
    --orange: #E8761A;
    --orange-yellow: #F09C0F;
    --yellow: #F7C204;
    --white: #FFFFFF;
}


body{
    background-color: var(--white);
    color: var(--graphite);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Playfair Display', serif;
    margin: 0;
}

/* Login Page Styles */
body {
    background: url('../images/login-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

.login-bg-overlay {
    background: rgba(255,255,255,0.2);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(51,51,51,0.12);
    padding: 2.5rem 2rem 2rem 2rem;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card h2 {
    color: var(--chestnut);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
}

.login-card form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-card label {
    font-weight: 600;
    color: var(--graphite);
    margin-bottom: 0.25rem;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--orange-yellow);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--graphite);
    outline: none;
    transition: border 0.2s;
}

.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
    border: 1.5px solid var(--chestnut);
}

.login-card button[type="submit"] {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, var(--chestnut), var(--red-orange), var(--orange));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(51,51,51,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.login-card button[type="submit"]:hover {
    background: linear-gradient(90deg, var(--red), var(--orange-yellow));
    box-shadow: 0 4px 16px rgba(133,45,41,0.12);
}

/* Login and Register Links */
.login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.login-links a {
    color: var(--chestnut);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    transition: text-decoration 0.2s, color 0.2s;
}

.login-links a:hover {
    text-decoration: underline;
    color: var(--red-orange);
}

#register-form {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    align-items: center;
}

.back-button {
        position: fixed;
        top: 18px;
        left: 18px;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        z-index: 9999; /* ensure it's above overlay */
        -webkit-tap-highlight-color: transparent;
    }

    .back-button:focus {
        outline: none;
    }

    .back-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--white);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(51,51,51,0.12);
        color: var(--chestnut);
        border: 2px solid var(--chestnut);
        transition: box-shadow 0.15s, transform 0.12s;
    }

    .back-circle svg {
        display: block;
        color: var(--chestnut);
    }

    .back-text {
        color: var(--chestnut);
        font-weight: 600;
        font-family: 'Montserrat', sans-serif;
        background: transparent;
        transition: color 0.12s;
    }

    .back-button:hover .back-circle {
        transform: translateY(-1px);
    }

    .back-button:hover .back-text {
        color: var(--graphite);
    }

    @media (max-width: 420px) {
        .back-text { display: none; }
    }
