/* ==========================================================
   PROJECT WEST MIDLANDS - SIGN IN
   Uses tokens from theme.css.
========================================================== */

*, *::before, *::after { box-sizing: border-box; }
body.login-page { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); }
.login-page a { color: inherit; }

.lg { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); }

.lg-side {
    position: relative;
    background: var(--nav-bg) url("../assets/hero.jpg") center / cover no-repeat;
    color: #fff;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.lg-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 30, 58, .88), rgba(14, 30, 58, .96)); }
.lg-side::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 4px; background: var(--primary); }
.lg-side > * { position: relative; }

.lg-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lg-brand img { width: 46px; height: 46px; object-fit: contain; }
.lg-brand strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.lg-brand small { display: block; font-size: 14px; color: rgba(255, 255, 255, .65); }
.lg-quote::before { content: ""; display: block; width: 48px; height: 3px; background: var(--primary); margin-bottom: 18px; }
.lg-foot { margin: 22px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }
.lg-foot a { color: #fff; font-weight: 600; }
.lg-quote { font-family: var(--font-head); font-size: 26px; font-weight: 500; line-height: 1.3; max-width: 22ch; color: rgba(255, 255, 255, .92); margin: 0; }

.lg-main { display: grid; place-items: center; padding: 48px 24px; }
.lg-box { width: 100%; max-width: 400px; }
.lg-box h1 { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--text-strong); margin: 0; }
.lg-box > p { margin: 10px 0 28px; color: var(--muted); }

.discord-button {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; padding: 15px 20px;
    background: var(--primary); color: #fff !important; text-decoration: none;
    font-weight: 700; font-size: 17px; border-radius: 3px;
}
.discord-button:hover { background: var(--primary-dark); }
.lg-mark { display: none; }
.discord-button i { font-size: 20px; }
.discord-button.loading { opacity: .7; pointer-events: none; }

.lg-small { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.lg-small a { color: var(--primary); font-weight: 600; }
.back-link { display: inline-block; margin-top: 26px; font-size: 14px; font-weight: 600; color: var(--muted) !important; text-decoration: none; }
.back-link:hover { color: var(--text-strong) !important; }

.login-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-left: 4px solid var(--bad); background: var(--bad-bg); color: var(--text); font-size: 14px; border-radius: 2px; }
.login-error i { color: var(--bad); margin-top: 3px; }

@media (max-width: 820px) {
    .lg { grid-template-columns: 1fr; }
    .lg-side { padding: 24px; min-height: 0; gap: 28px; }
    .lg-side::after { top: auto; left: 0; width: auto; height: 3px; }
    .lg-quote { font-size: 20px; }
    .lg-main { place-items: start center; padding: 32px 20px 48px; }
    .lg-box h1 { font-size: 32px; }
    .lg-foot { display: none; }
}
