/* static/login.css */

body {
    /* 使用与设备详情页一致的深蓝渐变背景，显得专业且统一 */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
}

.login-box {
    background: rgba(255, 255, 255, 0.95); /* 轻微透明的白色背景 */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* 更有质感的阴影 */
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px); /* 鼠标悬停时轻微上浮 */
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.login-title {
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.form-control {
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.15);
    background-color: #fff;
}

.btn-login {
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.btn-login:hover {
    opacity: 0.9;
    /* bootstrap按钮hover默认会有变化，这里只做微调 */
    background: linear-gradient(90deg, #162e5a 0%, #1f407a 100%);
}

.form-label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.copyright {
    text-align: center;
    margin-top: 25px;
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}