/* Стили для страницы входа */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    max-width: 500px;
    width: 100%;
    background-color: #333333;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

.login-title {
    text-align: center;
    color: #E9AE67;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ddd;
    margin-bottom: 8px;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
    color: #aaa;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #E9AE67;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #555;
    border-radius: 12px;
    background-color: #444;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #E9AE67;
    box-shadow: 0 0 0 2px rgba(233, 174, 103, 0.2);
}

.form-input.error {
    border-color: #ff4444;
}

.error-message {
    font-size: 12px;
    color: #ff4444;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #E9AE67;
    color: #222;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #d4913e;
    transform: translateY(-2px);
}

.login-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
    transform: none;
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #E9AE67;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.register-link a {
    color: #E9AE67;
    text-decoration: none;
    font-size: 14px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .login-page {
        padding: 20px 15px;
    }
    
    .login-container {
        padding: 25px 20px;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .login-logo img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 15px;
    }
    
    .login-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 13px;
    }
}