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

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --bg-start: #0a1628;
    --bg-mid: #1a2d4a;
    --bg-end: #0d3b66;
    --text: #ffffff;
    --text-secondary: rgba(255,255,255,0.65);
    --card-bg: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.12);
    --input-bg: rgba(255,255,255,0.95);
    --btn-hover: #4285f4;
    --shadow: 0 12px 40px rgba(0,0,0,0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    min-height: 100vh;
    background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-mid) 40%, var(--bg-end) 100%);
    color: var(--text);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* 顶部导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10,22,40,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

/* 主内容区 */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    min-height: 100vh;
}

.hero-container {
    max-width: 1080px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: center;
}

/* 左侧品牌区 */
.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.hero-animation {
    margin-bottom: 28px;
}

.mail-icon {
    width: 100px;
    height: 100px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.envelope {
    width: 100%;
    height: 72px;
    position: absolute;
    bottom: 0;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(26,115,232,0.35);
}

.envelope::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 60%);
    border-radius: 10px;
    clip-path: polygon(0 0, 50% 65%, 100% 0);
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #ffffff 0%, #a8d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.features {
    display: flex;
    gap: 28px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.feature-item svg {
    color: #4285f4;
    filter: drop-shadow(0 2px 8px rgba(66,133,244,0.3));
}

.feature-item span {
    font-size: 13px;
}

/* 登录卡片 */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    animation: slideUp 0.5s ease-out 0.15s both;
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-desc {
    color: var(--text-secondary);
    font-size: 13px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: var(--input-bg);
    font-size: 14px;
    color: #333;
    transition: all 0.25s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.form-input::placeholder {
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toggle-password:hover {
    opacity: 1;
}

.form-options {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.checkbox-label input {
    accent-color: var(--primary);
    width: 15px;
    height: 15px;
}

.login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 3px;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,115,232,0.4);
}

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

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text);
}

.login-error {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(234,67,53,0.12);
    border: 1px solid rgba(234,67,53,0.25);
    border-radius: 8px;
    color: #ff8a80;
    font-size: 13px;
    text-align: center;
}

/* 底部 */
.footer {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 36px 24px 18px;
}

.footer-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 28px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-section a {
    color: #64b5f6;
    text-decoration: none;
    font-size: 13px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-ok {
    color: #81c784 !important;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 响应式 */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 400px;
    }
    .hero-content {
        text-align: center;
    }
    .features {
        justify-content: center;
    }
    .hero-title {
        font-size: 28px;
    }
    .mail-icon {
        margin: 0 auto;
    }
    .hero-animation {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0 14px;
    }
    .nav-links {
        gap: 4px;
    }
    .nav-link {
        font-size: 12px;
        padding: 4px 8px;
    }
    .nav-title {
        font-size: 14px;
    }
    .login-card {
        padding: 24px 20px;
    }
    .hero {
        padding: 70px 14px 32px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
