/* 登录页面样式 - 紧凑版 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.login-container {
    max-width: 400px;
    margin: 150px auto 20px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* 顶部免费体验横幅 - 紧凑设计 */
.free-trial-banner-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -25px -30px 20px -30px;
    padding: 12px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    position: relative;
    overflow: hidden;
}

.free-trial-banner-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.trial-icon-small {
    font-size: 16px;
    margin-right: 8px;
}

.trial-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trial-label {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.9;
}

.trial-benefit {
    font-weight: 700;
    font-size: 14px;
}

.trial-toggle {
    display: flex;
    align-items: center;
}

.trial-toggle input[type="checkbox"] {
    display: none;
}

.trial-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.trial-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.trial-toggle input:checked + .trial-switch {
    background: rgba(255, 255, 255, 0.5);
}

.trial-toggle input:checked + .trial-switch::before {
    transform: translateX(16px);
}

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

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    font-weight: 400;
}

.login-form {
    margin-top: 20px;
}

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

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-label {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.form-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-input:hover {
    border-color: #d1d5db;
}

.verify-code-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

.get-code-btn {
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.get-code-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.get-code-btn.disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #6b7280;
    margin-left: 72px;
    line-height: 1.4;
}

.checkbox-label input {
    margin-top: 2px;
    transform: scale(1.1);
    accent-color: #667eea;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.other-options {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.back-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.back-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

/* 邀请码样式 - 紧凑版 */
.invite-tip {
    font-size: 12px;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fce8e8 100%);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-left: 72px;
    margin-top: 6px;
    position: relative;
}

.invite-tip::before {
    content: '💰';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc2626;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

/* 响应式优化 */
@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        padding: 20px 25px;
    }
    
    .free-trial-banner-top {
        margin: -20px -25px 15px -25px;
        padding: 10px 16px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .input-label {
        min-width: auto;
        text-align: left;
        font-size: 13px;
    }
    
    .checkbox-label {
        margin-left: 0;
    }
    
    .invite-tip {
        margin-left: 0;
    }
}

/* 去掉原来占空间大的样式 */
.free-trial-group {
    display: none !important;
}