* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #17151c;
    background: #f4f1f8;
}

body {
    margin: 0;
    min-height: 100vh;
}

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

.auth-card,
.dashboard-card {
    width: min(100%, 430px);
    background: #fff;
    border: 1px solid #e9e4ef;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(43, 26, 65, 0.11);
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #6b3deb;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.brand-mark.admin {
    background: #17151c;
}

h1 {
    margin: 18px 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.subtitle,
.dashboard-card p {
    color: #706a78;
    line-height: 1.55;
}

form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 650;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    border: 1px solid #dcd5e5;
    border-radius: 13px;
    padding: 14px 15px;
    font: inherit;
    outline: none;
    background: #fff;
}

input:focus {
    border-color: #6b3deb;
    box-shadow: 0 0 0 4px rgba(107, 61, 235, 0.12);
}

small {
    color: #81798b;
    font-weight: 400;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.check-row input {
    margin-top: 3px;
}

button {
    border: 0;
    border-radius: 13px;
    background: #6b3deb;
    color: #fff;
    font: inherit;
    font-weight: 750;
    padding: 14px 18px;
    cursor: pointer;
}

button:hover {
    filter: brightness(.96);
}

.alert {
    margin-top: 18px;
    border-radius: 13px;
    padding: 12px 14px;
    line-height: 1.45;
}

.alert.error {
    background: #fff0f1;
    color: #9c2331;
}

.alert.success {
    background: #ecfbf2;
    color: #1b6b3a;
}

.switch-link {
    text-align: center;
    margin: 20px 0 0;
    color: #706a78;
}

a {
    color: #6b3deb;
    font-weight: 700;
    text-decoration: none;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    color: #6b3deb;
}

.form-hint {
    margin: -6px 0 0;
    color: #81798b;
    font-size: 13px;
    line-height: 1.5;
}

button:disabled {
    opacity: .52;
    cursor: not-allowed;
}

.auth-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #ece7f0; }
.auth-legal-links a { color: #766d7d; font-size: 11px; font-weight: 650; }
.check-row a { text-decoration: underline; text-underline-offset: 2px; }
