:root {
    --bg: #f5f7fb;
    --card-bg: #ffffff;
    --text: #18202a;
    --muted: #667085;
    --border: #d0d5dd;
    --border-focus: #e9b932;
    --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
    --brand: #e9b932;
    --brand-hover: #d8a71e;
    --error-bg: #fef3f2;
    --error-border: #fda29b;
    --error-text: #b42318;
    --message-bg: #eff8ff;
    --message-border: #84caff;
    --message-text: #175cd3;
    --disabled-bg: #f2d98a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.auth-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}

.auth-title {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 0 0 20px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.auth-error,
.auth-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.auth-error {
    border: 1px solid var(--error-border);
    background: var(--error-bg);
    color: var(--error-text);
}

.auth-message {
    border: 1px solid var(--message-border);
    background: var(--message-bg);
    color: var(--message-text);
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    margin-top: 14px;
    font-weight: 600;
    font-size: 14px;
}

.auth-label:first-of-type {
    margin-top: 0;
}

.auth-input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.auth-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(233, 185, 50, 0.18);
    transform: translateY(-1px);
}

.auth-input.input-error {
    border-color: var(--error-border);
    box-shadow: 0 0 0 4px rgba(253, 162, 155, 0.16);
}

.auth-button {
    width: 100%;
    height: 50px;
    margin-top: 22px;
    border: none;
    border-radius: 12px;
    background: var(--brand);
    color: #1b1b1b;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.18s ease, opacity 0.18s ease;
}

.auth-button:hover {
    background: var(--brand-hover);
}

.auth-button:active {
    transform: translateY(1px);
}

.auth-button:disabled {
    background: var(--disabled-bg);
    cursor: not-allowed;
    opacity: 0.85;
}

@media (max-width: 520px) {
    .auth-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 24px;
    }
}
