/*  reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "PingFang TC", "SF Pro Display", "Helvetica Neue", sans-serif;
    background: #000000;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

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

/* SVG Logo 容器 */
.logo-container {
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.logo-svg {
    width: 280px;
    height: 80px;
}

.logo-text {
    font-family: "PingFang SC", "PingFang TC", "SF Pro Display", "Helvetica Neue", sans-serif;
    font-size: 56px;
    font-weight: 700;
    fill: #FFFFFF;
    letter-spacing: 8px;
}

.logo-slogan {
    font-family: "PingFang SC", "PingFang TC", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 18px;
    font-weight: 300;
    fill: #86868b;
    letter-spacing: 2px;
}

.login-form {
    width: 100%;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.input-group {
    margin-bottom: 16px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 16px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

input::placeholder {
    color: #86868b;
}

.error-msg {
    font-size: 13px;
    color: #ff3b30;
    text-align: left;
    margin-top: 6px;
    padding-left: 4px;
    min-height: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    color: #86868b;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #0071e3;
}

.forgot-password {
    color: #0071e3;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
}

.btn-login {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    background: #0071e3;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: #0077ED;
    transform: scale(1.02);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

#btnText {
    display: inline-block;
    transition: opacity 0.3s;
}

.btn-login.loading #btnText {
    opacity: 0;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-login.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-error {
    font-size: 14px;
    color: #ff3b30;
    margin-top: 16px;
    min-height: 20px;
}

.form-error.shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.footer {
    margin-top: 48px;
    font-size: 12px;
    color: #86868b;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 24px 24px;
    }
    
    .logo-svg {
        width: 240px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 48px;
        letter-spacing: 6px;
    }
    
    .logo-slogan {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 16px 18px;
    }
    
    .btn-login {
        padding: 16px;
    }
}

/* 快捷导航链接 */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.quick-links a {
    color: #4fc3f7;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid #2a4a6d;
    border-radius: 6px;
    transition: all 0.2s;
}
.quick-links a:hover {
    background: #1a3345;
    border-color: #4fc3f7;
}
