@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800;900&family=Cormorant+Garamond:wght@500;600&family=Inter:wght@400;600;700;800&display=swap');

:root {
    --iw-paper: #ffffff;
    --iw-ink: #08111f;
    --iw-muted: #667083;
    --iw-blue: #154ee8;
    --iw-acid: #c7e53b;
    --iw-line: rgba(8, 17, 31, .2);
    --iw-red: #b72d25;
}

* { font-family: 'Inter', sans-serif; }

body.login-page {
    min-height: 100svh;
    display: block;
    overflow-x: hidden;
    color: var(--iw-ink);
    background: var(--iw-paper) url('../Loading Screen/Inkweaver Kagome Client Background.png') center / cover no-repeat fixed;
}

body.login-page::before,
body.login-page::after { display: none; }

#video-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 57% center;
    filter: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 68fr) minmax(380px, 32fr);
    gap: 0;
    width: 100%;
    min-height: 100svh;
}

.event-panel,
.container {
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.event-panel {
    position: relative;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    padding: clamp(34px, 4.5vw, 76px) clamp(28px, 4.6vw, 78px);
    background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.96) 27%, rgba(255,255,255,.77) 40%, rgba(255,255,255,0) 61%);
}

.event-panel::after { display: none; }

.season-brand {
    position: absolute;
    top: clamp(26px, 4vh, 48px);
    left: clamp(28px, 4.6vw, 78px);
    width: clamp(120px, 11vw, 184px);
}

.season-brand img { display: block; width: 100%; height: auto; }
.event-copy { width: min(580px, 54vw); }

.patch-ribbon {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 17px;
    padding: 0;
    color: var(--iw-ink);
    background: none;
    border-radius: 0;
    box-shadow: none;
    text-shadow: none;
    transform: none;
    font: 800 11px/1 'Inter', sans-serif;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.patch-ribbon::after { content: ''; width: 62px; height: 1px; background: var(--iw-ink); }

.event-panel h1 {
    max-width: none;
    margin: 0;
    color: var(--iw-blue);
    font: 900 clamp(74px, 8.1vw, 132px)/.74 'Barlow Condensed', sans-serif;
    letter-spacing: .012em;
    text-shadow: none;
    text-transform: uppercase;
}

.event-panel h2 {
    margin: 26px 0 0;
    color: var(--iw-ink);
    font: 600 clamp(23px, 2.1vw, 34px)/1.05 'Cormorant Garamond', serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.event-panel p {
    max-width: 480px;
    margin-top: 20px;
    color: #1d2a3b;
    font: 500 15px/1.62 'Inter', sans-serif;
}

.event-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }

.event-link {
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--iw-blue);
    border-radius: 0;
    color: white;
    background: var(--iw-blue);
    box-shadow: none;
    font: 800 11px/1 'Inter', sans-serif;
    letter-spacing: .08em;
}

.event-link.secondary { color: var(--iw-blue); background: rgba(255,255,255,.88); }
.event-link::after { content: '→'; font-size: 16px; }
.event-link:hover,
.event-link:focus-visible { color: var(--iw-ink); background: var(--iw-acid); border-color: var(--iw-acid); transform: translateY(-2px); }

.season-whisper {
    position: absolute;
    bottom: clamp(24px, 4vh, 50px);
    left: clamp(28px, 4.6vw, 78px);
    max-width: 220px !important;
    margin: 0 !important;
    color: #344052 !important;
    font: 700 9px/1.6 'Inter', sans-serif !important;
    letter-spacing: .3em;
    text-transform: uppercase;
}

.container {
    position: relative;
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 5vw, 78px) clamp(30px, 4vw, 64px);
    background:
        linear-gradient(115deg, transparent 0 92%, rgba(21,78,232,.045) 92%),
        repeating-linear-gradient(0deg, rgba(8,17,31,.014) 0 1px, transparent 1px 5px),
        var(--iw-paper);
}

.container::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 -32px;
    width: 34px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95));
    clip-path: polygon(100% 0, 100% 100%, 36% 94%, 78% 84%, 22% 72%, 72% 62%, 18% 49%, 76% 37%, 28% 22%, 84% 10%);
}

.login-title { margin-bottom: 40px; text-align: center; }
.login-title img { display: block; width: min(310px, 88%); height: auto; margin: 0 auto; }
.login-title span { margin-top: 15px; color: var(--iw-muted); font: 700 10px/1 'Inter', sans-serif; letter-spacing: .28em; }

.tabs { gap: 0; margin-bottom: 31px; border-bottom: 1px solid var(--iw-line); }
.tab {
    padding: 13px 10px 17px;
    border: 0;
    border-radius: 0;
    color: #626b7b;
    background: transparent;
    font: 800 11px/1 'Inter', sans-serif;
    letter-spacing: .14em;
}
.tab.active { color: var(--iw-blue); background: transparent; box-shadow: inset 0 -3px var(--iw-blue); }
.tab:hover { color: var(--iw-blue); }

.field-label { display: block; margin: 0 0 8px; color: var(--iw-ink); font: 800 10px/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase; }

input {
    width: 100%;
    min-height: 50px;
    margin: 0 0 19px;
    padding: 14px 15px;
    border: 1px solid #9ca5b3;
    border-radius: 0;
    color: var(--iw-ink);
    background: rgba(255,255,255,.72);
    font: 600 13px/1 'Inter', sans-serif;
}
input::placeholder { color: #858d9a; }
input:focus { outline: 0; border-color: var(--iw-blue); background: white; box-shadow: 0 0 0 3px rgba(21,78,232,.12); }

.container button {
    min-height: 52px;
    margin-top: 5px;
    padding: 15px;
    border: 1px solid var(--iw-blue);
    border-radius: 0;
    color: white;
    background: var(--iw-blue);
    box-shadow: none;
    font: 800 12px/1 'Inter', sans-serif;
    letter-spacing: .16em;
}
.container button::after { content: ' →'; }
.container button:hover,
.container button:focus-visible { color: var(--iw-ink); border-color: var(--iw-acid); background: var(--iw-acid); box-shadow: none; transform: translateY(-2px); }

.forgot-password-link { margin-top: 13px; color: var(--iw-blue); font: 700 11px/1.4 'Inter', sans-serif; text-align: right; }
.forgot-password-link:hover { color: var(--iw-ink); }
.error-message { color: var(--iw-red); font: 700 12px/1.4 'Inter', sans-serif; }
.success-message { color: #39710a; font: 700 12px/1.4 'Inter', sans-serif; }
.discord-separator { display: flex; align-items: center; gap: 16px; margin-top: 56px; color: var(--iw-muted); font: 800 9px/1 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.discord-separator::before,
.discord-separator::after { content: ''; flex: 1; height: 1px; background: var(--iw-line); }

.discord-btn {
    right: clamp(30px, 4vw, 64px);
    bottom: clamp(20px, 4vh, 42px);
    min-width: 240px;
    min-height: 46px;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--iw-blue);
    border-radius: 0;
    color: var(--iw-blue);
    background: rgba(255,255,255,.92);
    box-shadow: none;
    font: 800 10px/1 'Inter', sans-serif;
    letter-spacing: .13em;
}
.discord-btn:hover { color: var(--iw-ink); border-color: var(--iw-acid); background: var(--iw-acid); box-shadow: none; }
.electron-quit-btn { border-radius: 0; }

@media (max-width: 1050px) {
    body.login-page { overflow-y: auto; background-position: 58% top; }
    #video-background { display: none; }
    .login-shell { grid-template-columns: 1fr; width: 100%; padding: 0; }
    .event-panel { min-height: 600px; padding: 92px 30px 76px; background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.76) 52%, rgba(255,255,255,.06) 100%); }
    .event-copy { width: min(560px, 76vw); }
    .container { min-height: 680px; padding: 72px max(30px, calc((100vw - 520px) / 2)) 130px; }
    .container::before { inset: -31px 0 auto; width: auto; height: 32px; clip-path: polygon(0 100%, 0 46%, 12% 79%, 23% 25%, 36% 76%, 51% 20%, 66% 75%, 82% 27%, 100% 72%, 100% 100%); background: linear-gradient(180deg, transparent, rgba(255,255,255,.98)); }
    .discord-btn { position: absolute; right: 50%; bottom: 34px; transform: translateX(50%); }
    .discord-btn:hover { transform: translateX(50%) translateY(-2px); }
}

@media (max-width: 560px) {
    body.login-page { background-position: 61% top; }
    .event-panel { min-height: 560px; padding: 82px 20px 74px; background: linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,255,255,.75) 72%, rgba(255,255,255,.08)); }
    .season-brand { top: 24px; left: 20px; }
    .event-copy { width: 100%; }
    .event-panel h1 { font-size: clamp(59px, 20vw, 88px); }
    .event-panel h2 { font-size: 21px; letter-spacing: .1em; }
    .event-panel p { font-size: 13px; }
    .event-actions { display: grid; grid-template-columns: 1fr; }
    .event-link { width: 100%; }
    .season-whisper { display: none; }
    .container { min-height: 650px; padding: 62px 20px 118px; }
    .login-title img { width: min(280px, 86%); }
    .discord-btn { top: auto; right: 50%; bottom: 28px; width: min(260px, calc(100vw - 40px)); height: 46px; border-radius: 0; font-size: 10px; }
    .electron-quit-btn { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    #video-background { display: none; }
}
