:root {
    --bg: #0b0f13;
    --panel: #0f1720;
    --text: #e6eef6;
    --muted: #98a0ad;
    --accent: #6ee7b7;
}

[data-theme="light"] {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #0b1220;
    --muted: #667085;
    --accent: #2563eb;
}

* {
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.03));
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 44px;
    height: 44px;
}

.company {
    font-weight: 700;
    font-size: 1.2rem;
}

.controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.auth {
    display: grid;
    place-items: center;
    flex: 1;
    padding: 48px 20px;
}

.card {
    background: var(--panel);
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(2,6,23,0.6);
    width: 100%;
    max-width: 400px;
}

.card h1 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.field {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--muted);
}

input[type="text"],
input[type="password"] {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    background: transparent;
    color: var(--text);
    font-size: 1rem;
}

input::placeholder {
    color: var(--muted);
}

.row.between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.checkbox input {
    margin-right: 8px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin-top: 8px;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent), rgba(34,197,94,0.9));
    color: #fff;
}

.btn.ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
    display: block;
    margin-top: 12px;
    text-decoration: none;
}

.or {
    text-align: center;
    margin: 16px 0;
}

.or span {
    background: var(--panel);
    padding: 6px 12px;
    border-radius: 12px;
}

.foot {
    text-align: center;
    padding: 18px;
    color: var(--muted);
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.small {
    font-size: 0.8rem;
}

.muted {
    color: var(--muted);
}

a.lang {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--muted);
    margin-left: 6px;
}

a.lang:hover {
    color: var(--accent);
}
