:root {
    --blue-primary: #007bff;
    --bg-light: #f4f7f9;
    --white: #ffffff;
    --error-red: #ff4757;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Скрываем элементы */
.hidden {
    display: none !important;
}

h1 { font-weight: 800; font-size: 32px; margin: 0; color: var(--blue-primary); }
.subtitle { color: #8e9297; margin-bottom: 30px; font-size: 14px; }
h2 { font-size: 20px; margin-bottom: 20px; color: #2d3436; }

.form-group { margin-bottom: 15px; }

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 15px;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--blue-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.btn-auth:hover { opacity: 0.9; }

.switch-text { margin-top: 20px; font-size: 14px; color: #636e72; }
.switch-text a { color: var(--blue-primary); text-decoration: none; font-weight: 600; }

.error-message {
    color: var(--error-red);
    background: #fff0f0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 15px;
    border: 1px solid #ffccd2;
}
