/* Исходные стили для формы */
.u-section-1 .u-sheet-1 {
  min-height: 400px;
}

.u-section-1 .u-form-1 {
  width: 570px;
  margin-bottom: 60px;
}

.u-section-1 .u-form-group-2 {
  margin-left: 0;
}

/* Стили для формы входа */
.login-form {
    padding: 30px 20px;
    max-width: 570px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    background-color: #478ac9;
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.login-form input[type="submit"]:hover {
    background-color: #387cbd;
}

/* Сообщения об ошибках */
.error-message {
    color: #d9534f;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Стили для Google авторизации */
.google-auth-section {
    margin-top: 20px;
    text-align: center;
}

.divider {
    margin: 20px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    position: relative;
    z-index: 1;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    min-width: 200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-login-btn:hover {
    background: #357ae8;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.google-login-btn:active {
    background: #2d5aa0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-login-btn img {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 2px;
    padding: 2px;
}

/* Дополнительные ссылки */
.additional-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.additional-links a {
    color: #478ac9;
    text-decoration: none;
}

.additional-links a:hover {
    text-decoration: underline;
}

#forgot_password {
    text-align: left;
    margin-right: auto;
}

#create_account {
    text-align: right;
    margin-left: auto;
}

/* Скрытие Google reCAPTCHA badge */
.grecaptcha-badge {
    visibility: hidden;
}

/* Адаптивность */
@media (max-width: 1199px) {
    .u-section-1 .u-form-1 {
        width: 470px;
    }

    .login-form {
        max-width: 470px;
    }
}

@media (max-width: 575px) {
    .u-section-1 .u-form-1 {
        width: 340px;
    }

    .login-form {
        max-width: 340px;
        padding: 20px 15px;
    }

    .google-login-btn {
        min-width: 180px;
        padding: 10px 20px;
        font-size: 13px;
    }

    .divider {
        margin: 15px 0;
    }

    .additional-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .additional-links a {
        margin: 0;
    }
}

/* Сообщения об успехе */
.success-message {
    color: #155724;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}
