/* ================= CSS RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= ROOT VARIABLES ================= */
:root {
    --bg-main: #f9fafb;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --accent: #2563eb;
    --accent-hover: #1e40af;
    --border-light: #e5e7eb;
    --radius: 12px;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
    --max-width: 1200px;
    --transition: 0.2s ease;
}

/* ================= BODY ================= */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ================= HEADER ================= */
/* Header */
.main-header {
    position: sticky;               /* stays at the top */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;

    background: rgba(255, 255, 255, 0.4);  /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */

    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);         /* gentle shadow */
    
    z-index: 100; /* stays above content */
}

/* Ensure nav links are readable on glass */
.navbar a {
    color: #333;           /* dark text for contrast */
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.navbar a:hover,
.navbar a.active {
    color: #0077ff;
}
.logo {
    height: 65px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    padding: 6px 12px;
    border-radius: 6px;

}

.navbar a:hover,
.navbar a.active {
    color: #007bff;
    background-color: rgba(0, 119, 255, 0.1);
}

/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}
/* Mobile view */
@media (max-width: 700px) {
    .hamburger {
        display: block;      /* show hamburger */
        margin-left: auto;   /* push to right */
        font-size: 28px;
        cursor: pointer;
    }

    .navbar ul {
        display: none;       /* hide menu initially */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%;           /* dropdown below header */
        right: 0;            /* align to right */
        background: rgba(255, 255, 255, 0.82); /* glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 99;
    }

    .navbar ul.show {
        display: flex;       /* show menu when toggled */
    }

    .main-header {
        flex-direction: row;  /* logo left, hamburger right */
        align-items: center;
        padding: 15px 20px;
    }
}



/* ================= SIGN IN SECTION ================= */
.signin-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.signin-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.signin-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.signin-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ================= FORM ================= */
.signin-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.signin-form label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
}

.signin-form input {
    padding: 0.7rem 0.8rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 0.95rem;
    transition: border-color var(--transition),
        box-shadow var(--transition);
}

.signin-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ================= BUTTON ================= */
.signin-form button {
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition),
        transform var(--transition);
}

.signin-form button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* ================= FORGOT PASSWORD ================= */
.forgot-password {
    margin-top: 1.2rem;
    text-align: center;
}

.forgot-password a {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ================= FOOTER ================= */
footer {
    border-top: 1px solid var(--border-light);
    padding: 2rem;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-left img {
    height: 36px;
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar ul {
        gap: 1rem;
    }
}
