:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 900px;
    max-width: 90vw;
    display: flex;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-logo {
    text-align: center;
    margin-bottom: 40px;
}

.admin-logo i {
    font-size: 80px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.admin-logo h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    opacity: 0.9;
}

.feature-list li i {
    margin-right: 15px;
    color: var(--accent-color);
    width: 20px;
}

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.login-header p {
    color: var(--dark-gray);
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dark-gray);
}

/* 邮箱验证码相关样式 */
.email-code-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.email-code-input {
    flex-grow: 1;
}

.send-code-btn {
    height: 52px;
    padding: 0 20px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.send-code-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

.send-code-btn:disabled {
    background: var(--dark-gray);
    border-color: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
}

.email-hint {
    margin-top: 8px;
    font-size: 12px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.login-btn:disabled {
    background: var(--dark-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #fee;
    color: var(--danger-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
    font-size: 14px;
    display: none; /* 由JS控制显示 */
}

.success-message {
    background: #eafaf1;
    color: var(--success-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #a3e9a4;
    font-size: 14px;
    display: none; /* 由JS控制显示 */
}

.text-danger {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95vw;
    }
    
    .login-left {
        padding: 30px;
    }
    
    .login-right {
        padding: 30px;
    }

    .email-code-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .send-code-btn {
        width: 100%;
    }
} 