/* 首页登录页面独立样式 */

/* 页面背景 */
.login-page {
    height: 100vh;
    background: #337ab7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 登录框 */
.login-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标题样式 */
.login-title {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #888;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* 表单样式 */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    height: 50px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 20px;
    transition: all 0.3s;
    background: #fafafa;
}

.login-form .form-control:focus {
    border-color: #337ab7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(51, 122, 183, 0.1);
    outline: none;
}

.login-form .form-control::placeholder {
    color: #aaa;
}

/* 登录按钮 */
.login-btn {
    height: 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    background: #5cb85c;
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    color: #fff;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 184, 92, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

/* 其他链接 */
.login-links {
    text-align: center;
    margin-top: 25px;
}

.login-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.login-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.2);
}

/* 装饰元素 */
.login-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    filter: blur(60px);
}

.login-decoration-1 {
    top: -100px;
    left: -100px;
}

.login-decoration-2 {
    bottom: -100px;
    right: -100px;
}

/* 输入框图标 */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

.input-icon-wrapper .form-control {
    padding-left: 45px;
}

/* 记住密码选项 */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* 错误提示 */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* 响应式适配 */
@media (max-width: 480px) {
    .login-box {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
}
