/* Safepal 管理后台登录页面样式 */

/* 页面整体背景 - 渐变色 */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: linear-gradient(135deg, 
        #667eea 0%, 
        #764ba2 25%, 
        #f093fb 50%, 
        #4facfe 75%, 
        #00f2fe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* 背景渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 容器 */
#container {
    height: 100%;
    width: 100%;
    position: relative;
}

/* 自动填充输入框样式 */
input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 1000px #fff;
    background-color: transparent;
}

/* 登录表单背景容器 */
.admin-login-background {
    width: 360px;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 标题样式 */
.admin-header {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 输入框通用样式 */
.admin-input {
    border: 1px solid #e0e0e0;
    height: 50px;
    width: 100%;
    padding: 0 15px 0 45px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.admin-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* 输入框占位符颜色 */
.admin-input::-webkit-input-placeholder {
    color: #999;
}

/* 图标样式 */
.layui-icon-username,
.layui-icon-password {
    color: #667eea !important;
    font-size: 20px;
}

.layui-icon-username:hover,
.layui-icon-password:hover {
    color: #764ba2 !important;
}

/* 用户名输入框 */
.admin-input-username {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

/* 验证码输入框 */
.admin-input-verify {
    border-radius: 0 0 10px 10px;
}

/* 登录按钮 */
.admin-button {
    margin-top: 25px;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.admin-button:active {
    transform: translateY(0);
}

/* 图标定位 */
.admin-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    z-index: 1;
}

/* 图标容器定位 */
i {
    position: absolute;
}

/* 验证码图片 */
.admin-captcha {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.admin-captcha:hover {
    opacity: 0.8;
}

/* 表单项容器 */
.layui-form > div {
    position: relative;
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .admin-login-background {
        width: 90%;
        padding: 30px 20px;
    }
    
    .admin-header {
        font-size: 28px;
    }
}
