/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --theme-color: #6f2cf6;
    --theme-hover: #5f25d9;
    --theme-light: rgba(111, 44, 246, 0.1);
    --wave-color-1: #f5f5f5;
    --wave-color-2: #e9e9e9;
}

@font-face {
    font-family: 'PingFang SC';
    src: local('PingFang SC');
}

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 登录容器 */
.login-container {
    display: flex;
    width: 1120px;
    height: 760px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.login-content {
    flex: 1;
    max-width: 480px;
    padding: 48px;
    display: flex;
    flex-direction: column;
}

.login-background {
    flex: 1;
    background: linear-gradient(135deg, #f3f1fa, #e9e4f7);
    background-size: cover;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(180,163,225,.25)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-position: center center;
    background-size: 80px 80px;
    opacity: 0.7;
}

/* 移除老的波浪动画样式 */
.login-background::after {
    display: none;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-1200px);
    }
}

/* 登录头部 */
.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
}

.typing-text {
    display: inline-block;
    min-width: 4px;
    color: var(--theme-color);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 32px;
    background-color: var(--theme-color);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.login-description {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--theme-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--theme-light);
}

.form-group input::placeholder {
    color: #999;
}

.forgot-password {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: var(--theme-hover);
}

/* 登录按钮 */
.sign-in-btn {
    height: 44px;
    background-color: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    position: relative;
    z-index: 1;
}

.sign-in-btn:hover {
    background-color: var(--theme-hover);
}

.sign-in-btn:active {
    transform: translateY(1px);
}

/* 分割线 */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin: 6px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    margin: 0 14px;
}

/* 社交登录按钮 */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.google-btn,
.facebook-btn {
    height: 44px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.google-btn:hover,
.facebook-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--theme-color);
}

.google-btn img,
.facebook-btn img {
    width: 18px;
    height: 18px;
}

/* 注册链接 */
.signup-link {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.signup-link a {
    color: var(--theme-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: var(--theme-hover);
}

/* 版权信息 */
.copyright {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    body {
        align-items: flex-start;
        background-color: #fff;
    }

    .login-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .login-content {
        max-width: 100%;
        padding: 24px;
    }

    .login-background {
        display: none;
    }

    .login-header {
        margin-bottom: 28px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .login-form {
        gap: 16px;
    }

    .copyright {
        padding-top: 28px;
    }
}

.reset-link-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.reset-link-box {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.reset-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.reset-link:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.reset-note {
    color: #6c757d;
    font-size: 0.9em;
    margin-top: 10px;
} 