/**
 * 灵动积木 - 登录页面样式
 * 
 * @author 灵动积木开发团队
 * @link https://jimuie.com
 */

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.logo p {
    font-size: 14px;
    color: #666;
}

/* 标签切换 */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 标签内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.forgot-password {
    font-size: 13px;
    white-space: nowrap;
}

/* 输入框图标 */
.form-group {
    position: relative;
}

.form-group input::placeholder {
    color: #999;
}

/* 提交按钮特殊样式 */
.login-card button[type="submit"] {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-card button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 响应式 - 手机横屏 */
@media screen and (min-width: 576px) {
    .login-card {
        padding: 40px;
    }
    
    .logo h1 {
        font-size: 36px;
    }
}

/* 响应式 - 平板 */
@media screen and (min-width: 768px) {
    .login-card {
        padding: 50px;
        max-width: 480px;
    }
    
    .logo h1 {
        font-size: 40px;
    }
    
    .logo p {
        font-size: 15px;
    }
}

/* 移动端触摸优化 */
@media (hover: none) {
    .tab-btn:active {
        background-color: rgba(102, 126, 234, 0.1);
    }
    
    .btn:active {
        opacity: 0.8;
    }
}

