/* Login page - shared dark gradient theme
   Self-contained: includes variables, reset, and all login UI */
:root {
    --font-primary: "Instrument Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    --color-primary: #182954;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-body);
    line-height: 1.6;
    background: linear-gradient(135deg, #182954 0%, #2a4580 50%, #4875a2 100%);
    color: #fff;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
    text-decoration: none;
}
.login-back-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}
.login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 2.5rem 3rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}
.login-logo img {
    height: 20px;
    width: auto;
}
.login-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
    font-family: var(--font-body);
    text-align: left;
}
.login-input::placeholder {
    color: #888;
}
.login-input:focus {
    outline: none;
    border-color: var(--color-primary);
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap .login-input {
    padding-right: 3.5rem;
}
.login-pw-toggle {
    position: absolute;
    right: 12px;
    top: 0;
    height: 100%;
    width: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.login-pw-toggle::after {
    content: "SHOW";
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #555;
}
.login-pw-toggle:hover::after {
    color: #1a1a1a;
}
.login-pw-toggle.visible::after {
    content: "HIDE";
}
.login-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    position: relative;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.login-btn::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 15px;
    background: url("https://a.akel.co/sites/5/2025/12/arrow-right-white.svg")
        no-repeat center / contain;
    opacity: 0.7;
    transition: none;
}
.login-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.login-btn:hover::after {
    opacity: 1;
    filter: none;
}
.login-error {
    color: #ff4d6a;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
/* ── Post-login nav (root index when authenticated) ───────────────── */
main {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
main .login-logo {
    margin-bottom: 2rem;
}
.welcome-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}
nav a {
    display: block;
    padding: 1rem 2.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
nav li:last-child a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}
.signout {
    margin-top: 3rem;
    padding-top: 1.5rem;
}
.signout a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}
.signout a:hover {
    color: rgba(255, 255, 255, 0.9);
}
