/* ===== БАЗА ===== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top left, #fff7e0, #f4f4f6);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */

.auth-wrapper {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 40px;
    align-items: stretch;
    padding: 20px;
}

@media (max-width: 850px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

/* ===== ЛЕВАЯ КАРТОЧКА (ФОРМА) ===== */

.auth-card {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.auth-logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffb300, #ff8c00);
    margin: 0 auto 22px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-bottom: 24px;
}

/* ===== ПОЛЯ ФОРМЫ ===== */

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e2e4f0;
    background: #f5f6fc;
    font-size: 14px;
    transition: border 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: #ffb54a;
    background: #fffdf5;
    box-shadow: 0 0 0 2px rgba(255,181,74,0.25);
}

/* Чекбокс — чтобы стоял ровно */
.auth-field input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ===== КНОПКА ===== */

.auth-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 13px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #ff8c00, #ffb300);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255,165,0,0.4);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.auth-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255,165,0,0.5);
}

/* ===== СООБЩЕНИЯ ===== */

.auth-error,
.auth-success {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-error {
    background: #ffe3e3;
    border: 1px solid #ffb4b4;
    color: #a10000;
}

.auth-success {
    background: #e7ffe9;
    border: 1px solid #a3e4aa;
    color: #0f7c26;
}

/* ===== ПРАВАЯ КАРТОЧКА (ДЕКОРАТИВНАЯ) ===== */

.auth-side {
    background: linear-gradient(145deg, #fff8e5, #ffffff);
    padding: 32px 28px;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
    border: 1px solid #ffe7c2;
}

.auth-side-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.auth-side-list {
    margin: 0;
    padding-left: 18px;
}

.auth-side-list li {
    font-size: 14px;
    margin-bottom: 8px;
    color: #555;
}

/* ===== БЛОК ССЫЛОК ВНИЗУ ===== */

.auth-links {
    text-align: center;
    font-size: 13px;
    margin-top: 16px;
}

.auth-links a {
    color: #6b46ff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ===== ИНДИКАТОР НАДЁЖНОСТИ ПАРОЛЯ ===== */

.password-check {
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7e0;
    border: 1px solid #ffe3ad;
}

.pwd-item {
    font-size: 12px;
    margin-bottom: 3px;
}

.pwd-red {
    color: #c70000;
}

.pwd-yellow {
    color: #c78b00;
}

.pwd-green {
    color: #0c8c34;
}
