/* Login page styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.login-container {
    position: relative;
    display: flex;
    min-height: 100vh;
}

/* Left side */
.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1890ff 0%, #722ed1 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-left-content {
    text-align: center;
    z-index: 1;
    padding: 40px;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo svg {
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.login-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.login-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Right side */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.login-box {
    width: 400px;
    padding: 40px;
}

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

.login-box-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.85);
    margin-bottom: 8px;
}

.login-box-header p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.45);
}

/* Tabs */
.login-tabs {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 16px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.tab-item.active {
    color: #1890ff;
    font-weight: 500;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1890ff;
}

.tab-item:hover {
    color: #1890ff;
}

/* Forms */
.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

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

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

.input-icon {
    position: absolute;
    left: 12px;
    color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 42px;
    padding: 0 40px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input-wrapper input::placeholder {
    color: rgba(0, 0, 0, 0.25);
}

.eye-icon {
    position: absolute;
    right: 12px;
    left: auto;
    cursor: pointer;
    /* 覆盖 .input-icon 的 pointer-events:none，否则点不动 */
    pointer-events: auto;
    color: rgba(0, 0, 0, 0.25);
    transition: color 0.3s;
}

.eye-icon:hover {
    color: #1890ff;
}

/* 密码已明文显示时高亮 */
.eye-icon.active {
    color: #1890ff;
}

/* Captcha */
.captcha-item {
    display: flex;
    gap: 12px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    background: #f5f5f5;
}

.captcha-img svg {
    width: 100%;
    height: 100%;
}

/* SMS button */
.sms-wrapper {
    display: flex;
}

.sms-wrapper input {
    flex: 1;
}

.sms-btn {
    position: absolute;
    right: 8px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid #1890ff;
    border-radius: 4px;
    background: #fff;
    color: #1890ff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sms-btn:hover:not(:disabled) {
    background: #e6f4ff;
}

.sms-btn:disabled {
    border-color: #d9d9d9;
    color: rgba(0, 0, 0, 0.25);
    cursor: not-allowed;
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.65);
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot {
    color: #1890ff;
}

.forgot:hover {
    color: #40a9ff;
}

/* Login button */
.login-btn {
    width: 100%;
    height: 44px;
    background: #1890ff;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 4px;
}

.login-btn:hover {
    background: #40a9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.login-btn:active {
    background: #096dd9;
}

.login-tips {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
}

/* Footer */
.login-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(0, 0, 0, 0.45);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 24px;
    }
    
    .login-box {
        width: 100%;
        max-width: 360px;
        padding: 0;
    }
}
