:root {
    color-scheme: light;
    --bg: #eaf2fb;
    --bg-deep: #d8e6f7;
    --surface: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.08);
    --text: #12233f;
    --muted: #5d6f8d;
    --accent: #0f766e;
    --accent-deep: #155e75;
    --danger: #b91c1c;
    --shadow: 0 28px 90px rgba(18, 35, 63, 0.16);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", "Noto Sans SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 26%),
        radial-gradient(circle at bottom right, rgba(21, 94, 117, 0.16), transparent 24%),
        linear-gradient(180deg, #f6fbff 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

button,
input {
    font: inherit;
}

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

.login-panel {
    width: min(560px, 100%);
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
}

.login-copy h1 {
    margin: 14px 0 24px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field span {
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fbff;
    color: var(--text);
}

.auth-form-error {
    min-height: 1.2em;
    color: var(--danger);
    font-size: 0.92rem;
}

.primary-btn {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(15, 118, 110, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

@media (max-width: 640px) {
    .login-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .login-copy h1 {
        font-size: 2.2rem;
    }
}
