@charset "utf-8";

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

html, body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.login-container {
    display: flex;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 左侧介绍 */
.login-intro {
    flex: 1.2;
    padding-right: 60px;
    color: #fff;
}

.intro-content {
    max-width: 520px;
}

.intro-logo {
    margin-bottom: 24px;
}

.intro-logo img {
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.intro-logo-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.intro-desc {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.85;
    margin-bottom: 40px;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.feature-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 12px;
    opacity: 0.7;
}

.intro-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.7;
}

/* 右侧表单 */
.login-form-wrap {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.97);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    backdrop-filter: blur(20px);
}

.form-tabs {
    margin-bottom: 24px !important;
    border-bottom: 2px solid #f0f0f0;
}

.form-tabs .ax-item {
    padding: 12px 20px;
    font-size: 15px;
    color: #999;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.form-tabs .ax-item.ax-active {
    color: #667eea;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    margin-bottom: -2px;
}

.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13px;
    color: #999;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.label-hint {
    font-size: 11px;
    color: #999;
    font-weight: 400;
}

.custom-input {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-input:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

.custom-input input {
    border: none;
    padding: 12px 12px 12px 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    background: transparent;
}

.input-icon {
    width: 2.8rem !important;
    color: #999;
    font-size: 16px;
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-link, .switch-link {
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover, .switch-link:hover {
    opacity: 0.8;
}

.submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    transition: all 0.3s !important;
    height: auto !important;
    line-height: normal !important;
}

.submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.login-footer {
    text-align: center;
    padding: 16px 20px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    position: relative;
    z-index: 1;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    margin: 0 auto 20px;
    max-width: 400px;
}

/* 移动端适配 */
@media screen and (max-width: 900px) {
    .login-container {
        flex-direction: column;
        padding: 20px;
    }

    .login-intro {
        display: none;
    }

    .login-form-wrap {
        width: 100%;
        flex: none;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 24px;
        border-radius: 16px;
    }

    .intro-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
    }

    .form-header h3 {
        font-size: 20px;
    }

    .submit-btn {
        padding: 12px !important;
    }
}
