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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Gradient */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8e8 25%, #c9d6e3 50%, #e8c8d4 75%, #f5c6d6 100%);
    padding: 20px;
}

/* Login Card */
.login-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Logo */
.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

/* Title */
.title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: #8b9cb5;
    text-align: center;
    margin-bottom: 36px;
    letter-spacing: 0.5px;
}

/* Form */
.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.form-group input:focus {
    border-color: #88d8e8;
    box-shadow: 0 0 0 3px rgba(136, 216, 232, 0.15);
}

/* Login Button */
.login-btn {
    width: 100%;
    height: 52px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    background: linear-gradient(90deg, #a8e6cf 0%, #88d8e8 30%, #d4b8c7 70%, #e8c8d4 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

/* Divider */
.divider {
    height: 1px;
    background: #eeeeee;
    margin: 28px 0;
}

/* Register Link */
.register-link {
    text-align: center;
    font-size: 14px;
}

.register-link span {
    color: #999999;
}

.register-link a {
    color: #5bacb8;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 40px 30px 30px;
        border-radius: 16px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 14px;
    }
}

/* 小屏幕 (手机) 增强适配 */
@media (max-width: 375px) {
    .container {
        padding: 24px;
        min-height: 100vh;
    }
    
    .login-card {
        padding: 48px 32px 40px;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    }
    
    .logo {
        margin-bottom: 36px;
    }
    
    .logo img {
        width: 90px;
        height: 90px;
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    
    .title {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.5px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 40px;
        color: #64748b;
        line-height: 1.5;
        letter-spacing: 0.5px;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-group label {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 12px;
        color: #334155;
        letter-spacing: 0.5px;
    }
    
    .form-group input {
        height: 56px;
        padding: 0 20px;
        font-size: 16px;
        border-radius: 12px;
        border: 2px solid #e2e8f0;
        background-color: #f8fafc;
        transition: all 0.3s ease;
    }
    
    .form-group input::placeholder {
        color: #94a3b8;
    }
    
    .form-group input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
        background-color: #ffffff;
    }
    
    .login-btn {
        height: 56px;
        margin-top: 16px;
        font-size: 18px;
        font-weight: 600;
        border-radius: 12px;
        background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
        color: #ffffff;
        box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
        transition: all 0.3s ease;
    }
    
    .login-btn:hover {
        opacity: 0.95;
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    }
    
    .login-btn:active {
        transform: translateY(0);
    }
    
    .divider {
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
        margin: 32px 0;
        position: relative;
    }
    
    .divider::before {
        content: "或";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background-color: #ffffff;
        padding: 0 16px;
        font-size: 14px;
        color: #94a3b8;
        font-weight: 500;
    }
    
    .register-link {
        font-size: 16px;
        text-align: center;
    }
    
    .register-link span {
        color: #64748b;
        font-weight: 500;
    }
    
    .register-link a {
        color: #3b82f6;
        font-weight: 600;
        text-decoration: none;
        margin-left: 8px;
        transition: all 0.2s ease;
    }
    
    .register-link a:hover {
        color: #2563eb;
        text-decoration: underline;
    }
}
