* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

.auth-panel {
    width: min(100%, 430px);
    display: grid;
    gap: 26px;
    padding: 34px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.auth-brand {
    font-size: 1.25rem;
    justify-content: center;
}

.auth-copy {
    text-align: center;
}

.auth-message {
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-soft);
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.45;
}

.auth-copy h1 {
    margin: 0;
    color: #111318;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 650;
}

.auth-copy p {
    max-width: 340px;
    margin: 12px auto 0;
    color: var(--color-muted);
    line-height: 1.5;
}

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

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

.auth-field > span {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 500;
}

.auth-field div {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    background: var(--color-shell);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-muted);
}

.auth-field svg {
    width: 16px;
    height:  16px;
    flex: 0 0 auto;

}

.auth-field input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
}

.auth-field div:focus-within {
    border-color: rgba(67, 76, 228, .55);
    outline: 2px solid rgba(67, 76, 228, .16);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.auth-submit {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius);
    background: var(--color-cta);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    box-shadow: none;
}

.auth-submit svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-submit:hover {
    background: var(--color-cta-hover);
}

.auth-switch {
    margin: 0;
    color: var(--color-muted);
    text-align: center;
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-panel {
        padding: 26px 20px;
    }

    .auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
