:root {
    --ink: #0c0c0c;
    --ink-soft: #1c1c1c;
    --gold: #c9a24d;
    --gold-light: #e4c877;
    --gold-dark: #9c7a2e;
    --maple: #b3283d;
    --white: #ffffff;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --radius-lg: 22px;
    --radius-sm: 12px;
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: radial-gradient(circle at 15% 15%, #1a1a1a 0%, var(--ink) 45%, #050505 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: auto;
    position: relative;
    overflow: hidden;
}

/* Soft glowing brand-colored blobs behind the card — purely decorative,
   built with CSS gradients so no extra image assets are needed. */
.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.glow--gold {
    width: 480px;
    height: 480px;
    top: -140px;
    left: -120px;
    background: var(--gold);
    opacity: 0.28;
}

.glow--maple {
    width: 420px;
    height: 420px;
    bottom: -160px;
    right: -120px;
    background: var(--maple);
    opacity: 0.22;
}

.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
    background: var(--ink-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 46px 40px 38px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Thin tri-color accent bar echoing the logo's maple-red / gold identity */
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--maple), var(--gold) 45%, var(--gold-light));
}

.login-logo-badge, .login-logo {
    width: 84px;
    height: 84px;
    margin: 4px auto 18px;
    /* background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%); */
    background: var(--ink-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5);
}

.login-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(201, 162, 77, 0.239);
    /* background: var(--ink-soft); */
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.login-card h1 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin: 0 0 6px;
}

.login-sub {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 28px;
}

.login-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    text-align: left;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.login-form label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: 14px;
    margin-bottom: 6px;
}

.input-field {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field > i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.92rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-field input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

.input-field input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: linear-gradient(90deg, var(--maple), var(--gold) 45%, var(--gold-light));;

}

.input-field:focus-within i {
    color: var(--gold-dark);
}

.password-field input {
    padding-right: 42px;
}

.toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.92rem;
    padding: 6px;
    transition: color 0.2s ease;
}

.toggle-pw:hover {
    color: var(--ink);
}

.btn.login-submit {
    margin-top: 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: var(--gold-light);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 22px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -10px rgba(0, 0, 0, 0.55);
    filter: brightness(1.12);
}

.btn.login-submit:active {
    transform: translateY(0);
}

.login-footnote {
    margin: 22px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-footnote i { color: var(--gold); }

@media (max-width: 480px) {
    .login-card { padding: 38px 26px 32px; }
}