/* static/css/login.css */
.container {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-sizing: border-box;
    margin: 0;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease;
    animation: fadeIn 0.5s ease forwards;
}

.login-container:hover {
    transform: scale(1.05);
}

.login-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

label {
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
    width: 100%;
    max-width: 300px;
}

input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    input, label {
        max-width: 100%;
    }
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

input::placeholder {
    color: #aaa;
    transition: color 0.3s ease;
}

input:focus::placeholder {
    color: #ccc;
}

.btn {
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    align-self: center;
}

.btn:hover {
    background: linear-gradient(90deg, #5a6fdd, #6a4299);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 优化提示消息样式 */
.flash-messages {
    margin-bottom: 1.5rem;
    padding: 0;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 8px;
    background-color: #f8d7da;
    color: #721c24;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* 表单验证样式 */
input.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    align-self: flex-start;
    width: 100%;
    max-width: 300px;
    margin-top: -0.5rem;
}

/* 页脚占位符样式 */
.footer-placeholder {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: #666;
    background-color: #fff;
    border-top: 1px solid #eee;
    z-index: 100;
}

.footer-placeholder .footer-item {
    margin: 5px 0;
}

.footer-placeholder.loaded {
    animation: fadeIn 0.3s ease;
}

.footer-error {
    color: #dc3545;
    padding: 10px;
}