.alert {
    padding: 1rem;
    border-radius: 5px;
}

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

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-container {
    margin: 0 auto;
    max-width: 30rem;
}

.auth-form {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.forgot-password-link {
    text-decoration: none;
    color: #666666;
}

.form-label{
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #667eea;
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #764ba2 !important;
    transform: translateY(-2px);
}

.google-btn {
    display: block; 
    padding: 1rem; 
    background: white; 
    color: #333; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    text-decoration: none; 
    text-align: center; 
    font-weight: bold; 
    cursor: pointer; 
    margin-bottom: 1.5rem;
}

.google-btn div {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.5rem;
}

.google-btn div img {
    width: 20px; 
    height: 20px;
}

.section-underline {
    width: 30%;
    height: 4px;
    background: #667eea;
    border-radius: 2px;
    margin: 1rem;
    margin-left: 35%;
}

.btn-yandex {
    text-align: center;
}

.ya-auth {
    margin: 1rem 0;
}

.register-link {
    text-align: center;
}

.register-link p {
    color: #666;
}

.register-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    padding: 0;
    display: none;
}

.password-field.has-value .password-toggle {
    display: block;
}

.password-field.password-visible .password-toggle {
    opacity: 1;
}