/**
 * 登录页样式
 */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FF6B35 0%, #E85D26 100%);
}

/* === Header === */
.login-header {
    padding: 60px 30px 30px;
    text-align: center;
    color: white;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.login-logo img {
    width: 56px;
    height: 56px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.login-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

/* === Body (信任三件套 + 按钮) === */
.login-body {
    flex: 1;
    background: white;
    border-radius: 28px 28px 0 0;
    padding: 28px 24px 20px;
}

/* 信任三件套 */
.trust-badges {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    padding: 18px 10px;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFF0E6 100%);
    border-radius: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.trust-badge {
    text-align: center;
    flex: 1;
}

.trust-badge-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.trust-badge-num {
    font-size: 20px;
    font-weight: 800;
    color: #FF6B35;
    line-height: 1.2;
}

.trust-badge-label {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

/* 微信登录按钮 */
.btn-wechat-login {
    width: 100%;
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
}

.btn-wechat-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}

.btn-wechat-login:active {
    transform: translateY(0);
}

.btn-wechat-login svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0;
}

/* 微信内置浏览器提示 */
.wechat-tip {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
}

.wechat-tip p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.wechat-tip p:first-child {
    color: #FF6B35;
    font-weight: 500;
}

/* 其他登录入口 */
.other-login-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.btn-phone-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-phone-entry:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.06);
}

.btn-phone-entry svg {
    flex-shrink: 0;
}

.btn-register-entry {
    background: none;
    border: none;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-register-entry:hover {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.06);
}

/* 承诺保障 */
.login-promise {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

.promise-item svg {
    flex-shrink: 0;
}

/* === 手机登录表单（折叠面板） === */
.phone-form-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    margin-top: 0;
}

.phone-form-panel.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

.phone-form-inner {
    padding: 0;
}

/* 表单tabs */
.form-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #888;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s;
}

.tab-btn.active {
    color: white;
    background: #FF6B35;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* 表单项 */
.form-item {
    margin-bottom: 14px;
}

.form-input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0 4px;
    height: 48px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.form-input-group:focus-within {
    background: #fff;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.input-prefix {
    padding: 0 12px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #333;
}

.form-input::placeholder {
    color: #bbb;
}

.input-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    flex-shrink: 0;
    padding: 8px;
}

.icon-eye {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* 验证码按钮 */
.btn-sms-code {
    flex-shrink: 0;
    padding: 0 14px;
    height: 32px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-sms-code:disabled {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
}

.btn-sms-code:hover:not(:disabled) {
    background: #E85D26;
}

/* 表单section */
.form-section.hidden {
    display: none;
}

.invite-code-item.hidden {
    display: none;
}

/* 登录/注册按钮 */
.form-actions {
    margin-top: 20px;
}

.form-actions .btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #FF6B35 0%, #E85D26 100%);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.form-actions .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-1px);
}

.form-actions .btn-primary:active {
    transform: translateY(0);
}

.form-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* === Footer === */
.login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 24px 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: linear-gradient(180deg, #E85D26 0%, #D14F1E 100%);
}

.agreement-check {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.agreement-check input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: white;
}

.login-footer .link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.login-footer .link:hover {
    text-decoration: underline;
}

/* === 工具类 === */
.hidden {
    display: none !important;
}
