/* 智慧物业管理系统 - 登录页自定义样式 */

/* 渐变背景动画 */
body.signin {
    background: linear-gradient(-45deg, #667eea, #764ba2, #6B73FF, #000DFF);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 头部Logo和标题 */
.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header .logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-header .logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-header .logo-icon i {
    font-size: 36px;
    color: #fff;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 5px;
    letter-spacing: 1px;
}

.login-header p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.input-group {
    position: relative;
}

.input-group .fa {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bdc3c7;
    font-size: 16px;
    z-index: 10;
    transition: color 0.3s;
}

.form-control {
    height: 48px;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    padding-left: 45px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

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

.form-control:focus + .fa, 
.input-group:focus-within .fa {
    color: #667eea;
}

/* 验证码 */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row .form-control {
    flex: 1;
}

.captcha-row img.imgcode {
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e8e8e8;
    transition: all 0.3s;
}

.captcha-row img.imgcode:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 记住我复选框 */
.checkbox-custom {
    margin: 18px 0;
}

.checkbox-custom label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-login:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% { transform: scale(0, 0); opacity: 0.5; }
    100% { transform: scale(40, 40); opacity: 0; }
}

/* 底部信息 */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    color: #95a5a6;
    font-size: 12px;
}

.login-footer div:first-child {
    margin-bottom: 5px;
}

/* 功能特色图标 */
.login-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.login-features .feature {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    transition: transform 0.3s;
}

.login-features .feature:hover {
    transform: translateY(-5px);
}

.login-features .feature i {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

/* 错误提示 */
label.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    padding-left: 5px;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 25px;
    }
    
    .login-header h2 {
        font-size: 22px;
    }
    
    .login-features {
        gap: 20px;
    }
}
