.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-solid);
    padding: 10px 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 160ms;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 34px;
    width: auto;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.nav svg {
    stroke: var(--icon-color);
    width: 18px;
    height: 18px;
    display: block;
}

/* Updated Nav Logic based on our previous discussion */
.nav-icon {
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* --- Login Section --- */
main {
    /* This is the magic part. flex: 1 makes main grow to fill ALL available space */
    flex: 1;
    display: flex;
    align-items: center;
    /* Vertically Centers the box */
    justify-content: center;
    /* Horizontally Centers the box */
    padding: 6rem 1rem 3rem;
}

.login-container {
    background-color: #fff;
    padding: 2.5rem 2rem;
    /* Increased padding slightly for look */
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
    /* Slightly wider */
}

.login-form h2 {
    text-align: center;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--muted-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-group input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.login-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius);
    background-color: var(--brand-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 0.5rem;
}

.login-button:hover {
    background-color: var(--brand-hover);
}

.login-button:active {
    transform: scale(0.98);
}

.links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links a {
    color: var(--muted-color);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* --- Minimal Footer Specific to Login --- */
.simple-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: #999;
    /* Lighter color so it's not distracting */
    background: transparent;
    /* No background color */
    border: none;
    /* Removed the top border */
}

:root {
    --nav-solid: rgba(0, 0, 0, 0.86);
    --brand-color: #111;
    --brand-hover: #333;
    --card-bg: #fff;
    --text-color: #111;
    --muted-color: #6b6b6b;
    --border-color: rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Prompt', sans-serif;
    background-color: var(--card-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* NAVBAR (Minimal) */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-solid);
    padding: 10px 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 34px;
    width: auto;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.icon-btn {
    background: transparent;
    border: none;
    padding: 6px;
}

/* FORM SECTION */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 3rem;
}

.login-container {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.subtitle {
    text-align: center;
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--muted-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.input-group input {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.login-button {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius);
    background-color: var(--brand-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: var(--brand-hover);
}

.links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.links a {
    color: var(--muted-color);
    text-decoration: none;
}

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

.simple-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: #999;
    background: transparent;
}