/* Mate365 MagicBox 启动页面样式 */

/* 启动页面核心样式 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.splash-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: splash-pulse 2s infinite;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.splash-logo::before {
    content: "Mate365";
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-title {
    color: white;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: splash-fade-in 1s ease-out;
}

.splash-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 40px;
    animation: splash-fade-in 1.2s ease-out;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    animation: splash-fade-in 1.4s ease-out;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: splash-loading 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 登录页面样式 */
.login-screen {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: login-slide-up 0.6s ease-out;
}

.login-logo {
    width: 110px;
    height: 80px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.login-logo::before {
    content: "Mate365";
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.login-logo:hover {
    transform: scale(1.05);
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

.form-input:hover {
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::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 ease;
}

.login-btn:hover::before {
    left: 100%;
}

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

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

/* 鱼朵云授权按钮样式 */
.yuducloud-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.yuducloud-btn::before {
    content: "☁";
    font-size: 24px;
    margin-right: 8px;
}

.yuducloud-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.yuducloud-btn:hover::after {
    left: 100%;
}

.yuducloud-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, #5BA0F2 0%, #4289CC 100%);
}

.yuducloud-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 授权说明文字 */
.auth-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
    padding: 15px;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 8px;
    border-left: 3px solid #4A90E2;
}

/* 安全提示 */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #888;
    font-size: 12px;
}

.security-notice::before {
    content: "🔒";
    font-size: 14px;
}

.forgot-password {
    margin-top: 20px;
    font-size: 14px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 动画定义 */
@keyframes splash-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes splash-loading {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes splash-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 鱼朵云授权按钮脉冲动画 */
@keyframes auth-pulse {
    0% {
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 6px 30px rgba(74, 144, 226, 0.5);
    }
    100% {
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
    }
}

.yuducloud-btn:not(:hover):not(.loading) {
    animation: auth-pulse 3s infinite;
}

/* 工具类 */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .splash-title {
        font-size: 24px;
    }
    
    .splash-subtitle {
        font-size: 14px;
    }
    
    .splash-logo {
        width: 100px;
        height: 100px;
    }
    
    .splash-logo::before {
        font-size: 22px;
    }
    
    .login-card {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .login-container {
        padding: 20px 10px;
    }
}

@media (max-width: 320px) {
    .splash-logo {
        width: 80px;
        height: 80px;
    }
    
    .splash-logo::before {
        font-size: 18px;
    }
    
    .splash-title {
        font-size: 20px;
    }
}