/* 登录页面样式 - Smart Liger 5 Neumorphism 风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    animation: bgFloat 25s ease-in-out infinite reverse;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 20px); }
}

/* 登录容器 */
.login-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* 登录卡片 - Neumorphism */
.login-card,
.login-box {
    background: #e8e8e8;
    border-radius: 32px;
    padding: 48px 40px;
    box-shadow: 
        16px 16px 32px #c5c5c5,
        -16px -16px 32px #ffffff;
    animation: cardEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo 区域 */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1,
.logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
}

.login-header p,
.logo-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    box-shadow: 
        10px 10px 20px rgba(102, 126, 234, 0.4),
        -8px -8px 16px rgba(255, 255, 255, 0.6);
}

/* 表单区域 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 输入框组 - Neumorphism */
.input-group,
.form-group,
.login-form .form-group {
    position: relative;
    margin-bottom: 24px;
}

.input-label,
.form-group label,
.login-form .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    color: #94a3b8;
    z-index: 1;
    transition: color 0.3s;
}

.login-input,
.form-group input,
.login-form .form-group input,
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 18px;
    background: #e8e8e8;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 6px 6px 12px #c5c5c5,
        inset -6px -6px 12px #ffffff;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.login-input:focus,
.form-group input:focus,
.login-form .form-group input:focus,
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    box-shadow: 
        inset 8px 8px 16px #c5c5c5,
        inset -8px -8px 16px #ffffff,
        0 0 0 4px rgba(102, 126, 234, 0.15);
}

.login-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: #667eea;
}

.login-input::placeholder,
.form-group input::placeholder,
.login-form input::placeholder {
    color: #94a3b8;
}

/* 记住我和忘记密码 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #64748b;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    background: #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 
        inset 3px 3px 6px #c5c5c5,
        inset -3px -3px 6px #ffffff;
}

.remember-me input[type="checkbox"]:checked {
    background: linear-gradient(145deg, #667eea, #5a6fd6);
    box-shadow: 
        4px 4px 8px rgba(102, 126, 234, 0.3);
}

.remember-me input[type="checkbox"]:checked::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    font-weight: 600;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #5a6fd6;
}

/* 登录按钮 - Neumorphism */
.login-btn,
.btn-login,
.login-form .btn-login,
.login-form button[type="submit"],
button.btn-login {
    width: 100%;
    padding: 18px;
    background: linear-gradient(145deg, #667eea, #5a6fd6);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        8px 8px 16px rgba(102, 126, 234, 0.4),
        -6px -6px 14px rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: 8px;
}

.login-btn::before,
.btn-login::before,
.login-form .btn-login::before,
.login-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before,
.btn-login:hover::before,
.login-form .btn-login:hover::before {
    left: 100%;
}

.login-btn:hover,
.btn-login:hover,
.login-form .btn-login:hover,
.login-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 
        10px 10px 20px rgba(102, 126, 234, 0.45),
        -8px -8px 16px rgba(255, 255, 255, 0.7);
}

.login-btn:active,
.btn-login:active,
.login-form .btn-login:active,
.login-form button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 
        inset 6px 6px 12px rgba(90, 111, 214, 0.5),
        inset -4px -4px 10px rgba(255, 255, 255, 0.3);
}

.login-btn:disabled,
.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 底部信息 */
.login-footer {
    text-align: center;
    margin-top: 32px;
    color: #94a3b8;
    font-size: 13px;
}

.login-footer p {
    margin: 8px 0;
}

.login-footer a {
    color: #667eea;
    font-weight: 600;
}

.login-footer .text-muted,
.text-muted {
    color: #94a3b8;
    font-size: 12px;
}

/* 错误提示 */
.error-message,
.alert.alert-error {
    background: rgba(244, 63, 94, 0.1);
    border-left: 4px solid #f43f5e;
    padding: 14px 18px;
    border-radius: 12px;
    color: #be123c;
    font-size: 14px;
    margin-bottom: 20px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 成功提示 */
.success-message,
.alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    padding: 14px 18px;
    border-radius: 12px;
    color: #047857;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 加载状态 */
.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 480px) {
    .login-card,
    .login-box {
        padding: 36px 28px;
        border-radius: 28px;
    }
    
    .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }
    
    .login-header h1,
    .logo-text {
        font-size: 24px;
    }
    
    .login-input,
    .form-group input {
        padding: 16px;
        font-size: 14px;
    }
    
    .login-btn,
    .btn-login {
        padding: 16px;
        font-size: 15px;
    }
}
