:root {
  --font-body: "Space Grotesk", sans-serif;
  --font-mono: "Space Mono", monospace;
  --font-display:
    "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}

html,
body {
height: 100%;
}

body {
    background: var(--background);
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.login-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 36px;
}

.login-topbar img {
    width: 90px;
    height: 45px;
}

.create-link {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
    background: var(--lightblue);
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.create-link:hover {
opacity: 0.85;
}

/* ── CENTERED CARD ── */
.login-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content:flex-start;
    padding: 10px 95px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--black);
    border-radius: 10px;
}

.card-header {
    padding: 28px 28px 0 28px;
}

.card-title {
font-size: 19px;
font-weight: 700;
letter-spacing: -0.3px;
margin-bottom: 3px;
color: var(--white);
font-family: var(--font-body);
}

.card-sub {
    font-size: 12.5px;
    color: var(--text);
    font-weight: 300;
}

.card-sub a {
color: var(--red);
text-decoration: none;
font-weight: 500;
}
.card-sub a:hover {
text-decoration: underline;
}

.card-body {
    padding: 24px 28px 28px 28px;  
}

/* ── ERRORS ── */
.errors {
margin-bottom: 18px;
}
.error-item {
display: flex;
align-items: center;
gap: 9px;
background: var(--red-dim);
border: 1px solid var(--red-border);
padding: 11px 14px;
font-size: 12.5px;
color: var(--red);
margin-bottom: 6px;
}

.error-item::before {
content: "✕";
font-size: 9px;
color: var(--red);
flex-shrink: 0;
}

/* ── FORM ── */
.field {
margin-bottom: 15px;
}

.field label {
display: block;
font-size: 10px;
font-weight: 500;
letter-spacing: 1.5px;
text-transform: uppercase;
color: var(--white);
margin-bottom: 7px;
font-family: var(--font-mono);
}

input[type="text"],
input[type="password"] {
    background: var(--background);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px;
    border: none;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    border-radius: 6px;
}
input::placeholder {
color: var(--text);
}
input:focus {
border-color: var(--border-hover);
}

.password-wrap {
position: relative;
}
.password-wrap input {
padding-right: 44px;
}
.toggle-pw {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--muted);
cursor: pointer;
padding: 4px;
display: flex;
align-items: center;
transition: color 0.2s;
}
.toggle-pw:hover {
color: var(--white);
}

.row {
display: flex;
align-items: center;
justify-content: space-between;
margin: 16px 0 20px;
}
.remember {
display: flex;
align-items: center;
gap: 2px;
font-size: 15px;
color: var(--muted);
cursor: pointer;
font-weight: 300;
}
.remember input {
width: 15px;
height: 15px;
accent-color: var(--lightblue);
cursor: pointer;
}
.forgot {
font-size: 15px;
color: var(--lightblue);
text-decoration: none;
font-weight: 500;
}
.forgot:hover {
text-decoration: underline;
}

.btn-submit {
width: 100%;
background: var(--lightblue);
color: var(--white);
border: none;
font-family: var(--font-body);
font-size: 14px;
font-weight: 600;
padding: 13px;
border-radius: 6px;
cursor: pointer;
transition: opacity 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-submit:hover {
opacity: 0.85;
}

/* ── FOOTER ── */
.login-footer {
padding: 20px 32px;
text-align: center;
font-family: var(--font-mono);
font-size: 9.5px;
color: rgba(255, 255, 255, 0.2);
letter-spacing: 0.5px;
}
[data-theme="light"] .login-footer {
color: rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
.login-topbar {
    padding: 12px;
}
.login-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.create-link {
    padding: 6px 12px;
    font-size: 14px;
}
.remember, .forgot {
    font-size: 13px;
}
}