/* ==================================================================
   egoodshop 登录 / 注册 / 忘记密码
   主题：橙色系（参考轻流登录页）
   ================================================================== */

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

:root {
    --brand-primary: #fb9337;
    --brand-primary-dark: #d47024;
    --brand-primary-deep: #cf6e0a;
    --brand-primary-light: #ffa459;
    --brand-primary-10: #ffebdb;
    --brand-primary-05: #fff6ef;
    --gray-title: #121315;
    --gray-text: #494f57;
    --gray-muted: #767e89;
    --gray-placeholder: #acb3bd;
    --gray-border: #e6eaf0;
    --gray-border-light: #f0f3f7;
    --gray-bg: #f4f6f9;
    --gray-input: #f7f8fa;
    --gradient-brand: linear-gradient(160deg, #d47024 0%, #fb9337 100%);
    --gradient-btn: linear-gradient(90deg, #fa6f32 0%, #fb9337 80%);
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--gray-bg);
    color: var(--gray-text);
    height: 100%;
    width: 100%;
}

input, button {
    font-family: inherit;
}

a {
    color: var(--brand-primary);
}

/* ------------------------------------------------------------------
   整体布局
   ------------------------------------------------------------------ */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: var(--gray-bg);
}

.login-wrapper {
    width: 100%;
    max-width: 1080px;
    min-height: 600px;
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(20, 30, 50, 0.12);
}

/* ------------------------------------------------------------------
   左侧品牌介绍
   ------------------------------------------------------------------ */
.product-showcase {
    position: relative;
    flex: 1;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background: var(--gradient-brand);
    overflow: hidden;
}

.product-showcase::before,
.product-showcase::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.product-showcase::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -100px;
}

.product-showcase::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -70px;
    background: rgba(255, 255, 255, 0.08);
}

.showcase-content {
    position: relative;
    z-index: 2;
}

.brand-logo {
    margin-bottom: 40px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.brand-badge img {
    display: block;
    height: 34px;
    width: auto;
}

.product-intro {
    margin-bottom: 48px;
}

.product-intro h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
}

.product-intro p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.92;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    transition: background 0.3s ease, transform 0.3s ease;
}

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

.feature-icon {
    font-size: 24px;
    line-height: 1.2;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.88;
    margin: 0;
}

/* ------------------------------------------------------------------
   右侧表单区域
   ------------------------------------------------------------------ */
.login-area {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--gray-bg);
}

.login-area .login-box {
    display: block;
    width: 100%;
    min-height: auto;
    padding: 40px 36px;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 30, 50, 0.08);
}

.login-header {
    margin-bottom: 26px;
}

.login-header h1 {
    color: var(--gray-title);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--gray-muted);
    font-size: 14px;
}

/* Tab 切换（登录 / 注册） */
.login-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--gray-border);
}

.tab-item {
    position: relative;
    padding: 0 2px 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.tab-item.active {
    color: var(--gray-title);
    font-weight: 600;
}

.tab-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-btn);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-item.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 登录方式切换（账号 / 手机） */
.login-methods {
    margin-bottom: 22px;
}

.method-tabs {
    display: flex;
    padding: 4px;
    background: var(--gray-input);
    border-radius: 10px;
}

.method-tab {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    font-size: 14px;
    color: var(--gray-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-tab.active {
    background: #fff;
    color: var(--brand-primary-deep);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(20, 30, 50, 0.08);
}

.method-content {
    display: none;
}

.method-content.active {
    display: block;
}

/* ------------------------------------------------------------------
   表单元素
   ------------------------------------------------------------------ */
.form-item {
    margin-bottom: 18px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--gray-title);
    background: var(--gray-input);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.form-input::placeholder {
    color: var(--gray-placeholder);
}

.form-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-10);
}

.code-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-item .form-input {
    flex: 1;
    min-width: 0;
}

.code-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 18px;
    font-size: 14px;
    color: var(--brand-primary-deep);
    background: var(--brand-primary-05);
    border: 1px solid var(--brand-primary-10);
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.code-btn:hover {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* 注册密码强度提示 */
.pwd-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pwd-strength-bars {
    display: flex;
    gap: 4px;
}

.pwd-strength-bars i {
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 2px;
    background: #ececec;
    transition: background 0.2s ease;
}

.pwd-strength-text {
    font-size: 12px;
    line-height: 1;
    color: var(--gray-muted);
}

.pwd-strength[data-level="1"] .pwd-strength-bars i:nth-child(1) {
    background: #e74c3c;
}

.pwd-strength[data-level="1"] .pwd-strength-text {
    color: #e74c3c;
}

.pwd-strength[data-level="2"] .pwd-strength-bars i:nth-child(-n+2) {
    background: var(--brand-primary);
}

.pwd-strength[data-level="2"] .pwd-strength-text {
    color: var(--brand-primary-deep);
}

.pwd-strength[data-level="3"] .pwd-strength-bars i {
    background: #27ae60;
}

.pwd-strength[data-level="3"] .pwd-strength-text {
    color: #27ae60;
}

/* 表单辅助行 */
.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
}

.switch-login {
    justify-content: center;
    gap: 4px;
    margin: 18px 0 0;
    color: var(--gray-muted);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-muted);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary);
}

.forget-password {
    color: var(--brand-primary-deep);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.forget-password:hover {
    opacity: 0.8;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-btn);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    box-shadow: 0 8px 20px rgba(251, 147, 55, 0.4);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 协议 */
.form-agreement {
    margin-bottom: 22px;
}

.agreement-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--gray-muted);
    cursor: pointer;
}

.agree-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--brand-primary);
}

.agreement-label a {
    color: var(--brand-primary-deep);
    text-decoration: none;
}

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

/* 第三方登录（预留） */
.third-party-login {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-border-light);
}

.divider {
    position: relative;
    margin-bottom: 18px;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-border-light);
}

.divider span {
    position: relative;
    padding: 0 14px;
    font-size: 13px;
    color: var(--gray-placeholder);
    background: #fff;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-muted);
    text-decoration: none;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.social-btn:hover {
    color: var(--brand-primary-deep);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.social-btn.wechat:hover {
    color: #fff;
    background: #07c160;
    border-color: #07c160;
}

.social-btn.alipay:hover {
    color: #fff;
    background: #1677ff;
    border-color: #1677ff;
}

/* 底部版权 */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-placeholder);
}

.footer a {
    color: var(--brand-primary-deep);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==================================================================
   以下为「忘记密码」页沿用的旧类名样式
   ================================================================== */
.login-box {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--gray-bg);
}

.login-box .banner {
    display: none;
}

.login-content-box {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(20, 30, 50, 0.08);
}

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

.login-content-box .logo img {
    height: 40px;
    width: auto;
}

.login_tab {
    display: flex;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--gray-border);
}

.login_label {
    padding: 0 2px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-title);
}

.label_active {
    position: relative;
}

.label_active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-btn);
}

.form_input_div {
    margin-bottom: 18px;
}

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

.form_input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--gray-title);
    background: var(--gray-input);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.form_input::placeholder {
    color: var(--gray-placeholder);
}

.form_input:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-10);
}

.form_input_code_div .code {
    flex-shrink: 0;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--brand-primary-deep);
    background: var(--brand-primary-05);
    border: 1px solid var(--brand-primary-10);
    border-radius: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.form_input_code_div .code:hover {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.user_login_submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-btn);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.user_login_submit:hover {
    box-shadow: 0 8px 20px rgba(251, 147, 55, 0.4);
    transform: translateY(-1px);
}

.login-tool {
    margin-top: 18px;
    font-size: 14px;
}

.login-tool a {
    color: var(--brand-primary-deep);
    text-decoration: none;
}

.login-tool a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   响应式
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .login-wrapper {
        max-width: 720px;
        flex-direction: column;
    }

    .product-showcase {
        flex: none;
        padding: 40px;
    }

    .product-intro {
        margin-bottom: 32px;
    }

    .feature-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .login-area {
        flex: none;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 16px;
    }

    .login-wrapper {
        border-radius: 16px;
    }

    .product-showcase {
        padding: 32px 24px;
    }

    .product-intro h2 {
        font-size: 26px;
    }

    .login-area {
        padding: 28px 20px;
    }

    .login-area .login-box {
        padding: 30px 22px;
    }
}

@media (max-width: 560px) {
    .product-showcase {
        padding: 26px 18px;
    }

    .brand-badge {
        padding: 8px 14px;
    }

    .brand-badge img {
        height: 26px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 14px;
    }

    .login-header h1 {
        font-size: 22px;
    }

    .code-item {
        flex-direction: column;
        align-items: stretch;
    }

    .code-btn {
        width: 100%;
    }

    .login-content-box {
        padding: 30px 22px;
    }

    .form_input_code_div {
        flex-direction: column;
        align-items: stretch;
    }

    .form_input_code_div .form_input,
    .form_input_code_div .code {
        width: 100% !important;
        height: 48px;
    }
}
