*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #0c0e12;
    --bg-elevated: #141821;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f4f6fb;
    --muted: #9aa3b5;
    --accent: #22c55e;
    --accent-dim: rgba(34, 197, 94, 0.15);
    --danger: #f97316;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(34, 197, 94, 0.12), transparent),
        radial-gradient(800px 400px at 100% 0%, rgba(59, 130, 246, 0.08), transparent), var(--bg);
    color: var(--text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-shell {
    width: 100%;
    max-width: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #16a34a);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #052e16;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.login-brand p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-fields label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 8px;
}

.login-fields input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-fields input:focus {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.login-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: -4px;
    line-height: 1.4;
}

.login-submit {
    margin-top: 8px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent), #16a34a);
    color: #052e16;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s, filter 0.15s;
}

.login-submit:hover {
    filter: brightness(1.06);
}

.login-submit:active {
    transform: scale(0.98);
}

.login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}
