@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

:root {
    --bg: #f0f0f0;
    --panel: #ffffff;
    --ink: #1e1e1e;
    --muted: #5e5e5e;
    --line: #d4d4d4;
    --accent: #3858e9;
    --accent-dark: #2944c7;
    --sidebar: #1e1e1e;
    --sidebar-hover: #3858e9;
    --panel-bg: #f0f0f0;
    --panel-text: #1e1e1e;
    --panel-surface: #ffffff;
    --panel-surface-strong: #e6e6e6;
    --panel-line: #d4d4d4;
    --warning: #b45309;
    --danger: #b42318;
    --success: #16794c;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Poppins, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

a {
    color: var(--accent);
}

input,
button,
select {
    font: inherit;
}

input,
select,
option {
    font-weight: 400;
}

.page {
    min-height: 100vh;
}

.button,
.small-button {
    align-items: center;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 400;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.button {
    min-height: 30px;
    padding: 0 15px;
}

.small-button {
    min-height: 30px;
    padding: 0 15px;
}

.button:hover,
.small-button:hover {
    background: var(--accent-dark);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    padding: 24px;
    place-items: center;
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 24px 70px rgba(30, 30, 30, 0.08);
    display: grid;
    gap: 18px;
    max-width: 440px;
    padding: 32px;
    width: 100%;
}

.auth-card h1 {
    font-size: 32px;
    margin: 0;
}

.brand-link,
.panel-brand {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

label {
    color: var(--ink);
    display: grid;
    font-size: 15px;
    font-weight: 400;
    gap: 8px;
}

input {
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}

select {
    appearance: none;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    min-height: 44px;
    padding: 0 34px 0 12px;
    width: 100%;
}

input::placeholder {
    font-weight: 400;
}

input:focus,
select:focus {
    border-color: var(--accent);
    outline: 3px solid rgba(56, 88, 233, 0.2);
}

.muted {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.flash-stack {
    left: 50%;
    max-width: calc(100vw - 32px);
    position: fixed;
    top: 16px;
    transform: translateX(-50%);
    width: 520px;
    z-index: 20;
}

.flash {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(30, 30, 30, 0.1);
    margin-bottom: 10px;
    padding: 12px 14px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.flash.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.flash-error {
    border-left-color: var(--danger);
}

.flash-success {
    border-left-color: var(--success);
}

.flash-info {
    border-left-color: var(--warning);
}
