:root {
    color-scheme: light;
    font-family: "Segoe UI", Tahoma, sans-serif;
    --touch: 48px;
    --accent: #1565c0;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: #fafafa;
    color: #212121;
}

.boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
}

#boot-retry {
    min-height: var(--touch);
    min-width: 160px;
    font-size: 1rem;
}

.login {
    max-width: 420px;
    margin: 12vh auto 0;
    padding: 0 16px 32px;
}

.login h1 {
    margin: 0 0 16px;
}

.login label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.login input[type="email"],
.login input[type="password"] {
    min-height: var(--touch);
    font-size: 1rem;
    padding: 0 12px;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
}

.login input.invalid {
    border-color: #c62828;
}

.remember {
    flex-direction: row !important;
    align-items: center;
    min-height: var(--touch);
    gap: 12px !important;
}

.remember input {
    width: 24px;
    height: 24px;
}

.consent {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 12px !important;
}

.consent input {
    width: 24px;
    height: 24px;
    margin-top: 4px;
    flex-shrink: 0;
}

.consent span {
    line-height: 1.4;
}

#submit {
    width: 100%;
    min-height: var(--touch);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
}

#submit:disabled {
    opacity: 0.6;
}

.error, .field-error {
    color: #c62828;
    margin: 0 0 12px;
}

.hint {
    margin-top: 24px;
    color: #757575;
    font-size: 0.9rem;
}
