html {
    overflow-y: scroll;
}

.auth-container { max-width: 400px; margin: 50px auto; padding: 30px; background: #fff; border: none; border-radius: 12px; }
h1 { text-align: center; font-size: 1.5em; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #ccc; box-sizing: border-box; }
.form-group .form-errors { color: #d93025; font-size: 0.85em; margin-top: 5px; }
.form-group .help-text { color: #666; font-size: 0.85em; margin-top: 3px; }

.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-select label {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.role-select input[type="radio"] { display: none; }
.role-select input[type="radio"]:checked + label {
    background-color: #f0f0f0;
    border-color: #000;
    font-weight: 500;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1.2px solid #e0e0e0;
    background: #fff;
    color: #222;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.auth-btn:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
    color: #111;
}

.auth-switch { text-align: center; margin-top: 15px; }
.auth-grey-text { color: #888; }

/* Стили для чекбокса согласия */
.consent-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 0.97em; }
.consent-checkbox { accent-color: #000; width: 18px; height: 18px; margin-top: 2px; }
.consent-label { color: #222; line-height: 1.5; }
.consent-label a { color: #007bff; text-decoration: underline; transition: color 0.2s; }
.consent-label a:hover { color: #0056b3; }

/* Google button styles */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 10px 0;
    background: #fff;
    color: #222;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
    box-shadow: 0 1px 2px rgba(60,60,60,0.03);
}
.google-btn:hover {
    background: #f5f5f5;
    border-color: #888;
}
