.auth-form-container {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.auth-form {
    width: 100%;
    max-width: 450px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-form.auth-form--narrow {
    max-width: 400px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--main-black);
    font-size: 24px;
    font-weight: 700;
}

.auth-description {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--main-black);
    font-weight: 500;
}

.form-group label .required {
    color: #dc3545;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--main-orange);
}

.form-group input.error {
    border-color: #dc3545;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px !important;
}

.password-input-wrapper input::-ms-reveal,
.password-input-wrapper input::-ms-clear {
    display: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--main-orange);
}

.password-toggle .eye-icon {
    display: block;
}

.password-toggle .eye-icon.hidden {
    display: none !important;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.auth-form .auth-checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
}

.auth-form .auth-checkbox-label input[type="checkbox"] {
    display: none !important;
}

.auth-form .auth-checkbox-custom {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    border: 2px solid #e1e1e1 !important;
    border-radius: 3px !important;
    margin-right: 8px !important;
    position: relative !important;
    transition: all 0.3s !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.auth-form .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
    background: var(--main-orange) !important;
    border-color: var(--main-orange) !important;
}

.auth-form .auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    content: "";
    position: absolute !important;
    left: 5px !important;
    top: 2px !important;
    width: 4px !important;
    height: 8px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--main-orange);
    color: #fff;
}

.btn-primary:hover {
    background: #e87a2a;
}

.auth-link {
    color: var(--main-orange);
    text-decoration: none;
    font-size: 14px;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    margin: 0 0 8px;
}

.auth-footer p:last-child {
    margin-bottom: 0;
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-agreement {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 8px;
    line-height: 1.4;
}

.form-agreement a {
    color: var(--main-orange);
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

.auth-social {
    margin-top: 20px;
}

.auth-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    color: #aaa;
    font-size: 13px;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e1e1e1;
}

.auth-social-divider::before {
    margin-right: 10px;
}

.auth-social-divider::after {
    margin-left: 10px;
}

.btn-yandex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background-color: #000;
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-yandex:hover {
    background-color: #000;
    color: #fff !important;
}

@media (max-width: 600px) {
    .auth-form {
        padding: 30px 20px;
        margin: 0 20px;
    }
}
