body.page-shell--auth {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 100%);
}

.login-page-shell {
    width: min(100%, 560px);
    padding: 28px 18px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(54, 25, 34, 0.16);
}

.header {
    padding: 40px 20px 28px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 100%);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.12);
}

.title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.subtitle {
    margin: 12px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
}

.tab {
    flex: 1;
    padding: 15px 16px;
    border: 0;
    background: none;
    color: #666666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tab.active {
    color: #ff6b8b;
}

.tab.active::after {
    content: "";
    position: absolute;
    left: 20%;
    bottom: 0;
    width: 60%;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: #ff6b8b;
}

.tab-content {
    display: none;
    padding: 34px 20px 30px;
    text-align: center;
}

.tab-content.active {
    display: block;
}

.hint {
    margin: 0 0 26px;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.wechat-panel-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
}

.wechat-panel-hero-icon img {
    width: 64px;
    height: 64px;
    display: block;
}

.wechat-login-btn,
.login-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.wechat-login-btn:hover,
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 107, 139, 0.28);
}

.login-btn[disabled] {
    opacity: 0.72;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.wechat-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wechat-btn-icon img {
    width: 22px;
    height: 22px;
    display: block;
}

.bind-resume-card {
    padding: 18px 16px;
    border-radius: 14px;
    background: #fff5f7;
    border: 1px solid #ffd4dc;
    text-align: left;
}

.bind-resume-card strong {
    display: block;
    color: #c64b6c;
    font-size: 15px;
}

.bind-resume-card p {
    margin: 8px 0 0;
    color: #6d5a5f;
    font-size: 13px;
    line-height: 1.7;
}

.account-form {
    text-align: left;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    color: #2d2118;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b8b;
    box-shadow: 0 0 0 4px rgba(255, 107, 139, 0.12);
}

.password-container {
    position: relative;
}

.password-container input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: #777777;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle svg {
    fill: currentColor;
}

.password-toggle:hover {
    color: #ff6b8b;
}

.auth-status {
    min-height: 24px;
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: #7a7073;
}

.auth-status[data-state="error"] {
    color: #d1435b;
}

.auth-status[data-state="success"] {
    color: #1f9d6a;
}

.auth-status[data-state="loading"] {
    color: #9b5d36;
}

.other-login {
    margin-top: 28px;
    text-align: center;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    color: #999999;
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8e8e8;
    margin: 0 10px;
}

.wechat-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease;
}

.wechat-login-icon img {
    width: 30px;
    height: 30px;
    display: block;
}

.wechat-login-icon:hover {
    transform: scale(1.06);
}

@media (max-width: 480px) {
    .login-page-shell {
        padding: 20px 14px;
    }

    .header {
        padding: 32px 16px 24px;
    }

    .logo {
        width: 84px;
        height: 84px;
    }

    .title {
        font-size: 20px;
    }

    .tab-content {
        padding: 28px 16px 24px;
    }
}

/* Red-gold auth theme */
body.page-shell--auth {
    background:
        repeating-radial-gradient(ellipse at 50% 140px, rgba(255, 210, 110, 0.14) 0 1px, transparent 1px 12px),
        radial-gradient(ellipse at 50% 0%, rgba(255, 192, 82, 0.24), transparent 48%),
        linear-gradient(180deg, #cf0008 0%, #a90003 52%, #850000 100%);
    color: #4a2416;
}

.login-page-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(22px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
}

.login-container {
    max-width: 410px;
    border: 2px solid #efc35c;
    border-radius: 20px;
    background: linear-gradient(105deg, #fffef8 0%, #fff7e5 58%, #ffedc9 100%);
    box-shadow: 0 10px 0 rgba(100, 0, 0, 0.24), 0 18px 32px rgba(75, 0, 0, 0.3);
}

.header {
    padding: 38px 22px 30px;
    color: #fff0bd;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 222, 127, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(148, 8, 2, 0.94), rgba(102, 0, 0, 0.92));
}

.logo-container {
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    border: 2px solid #f2c35b;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff6ce 0%, #ffe5a6 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(108, 0, 0, 0.24);
}

.logo {
    width: 72px;
    height: 72px;
    border: 0;
    background: transparent;
}

.logo ellipse {
    stroke: #b56f18;
}

.logo circle {
    fill: #d4121a;
}

.title {
    color: #fff0bd;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.28;
    text-shadow: 0 2px 0 rgba(106, 0, 0, 0.35);
}

.subtitle {
    color: #ffd181;
    font-weight: 700;
}

.login-tabs {
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid rgba(224, 190, 125, 0.62);
    background: rgba(255, 248, 230, 0.72);
}

.tab {
    border-radius: 999px;
    color: #875018;
}

.tab.active {
    color: #ffefb2;
    background: linear-gradient(180deg, #ff3636 0%, #c70c12 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 13px rgba(79, 0, 0, 0.2);
}

.tab.active::after {
    display: none;
}

.tab-content {
    background: transparent;
}

.hint,
.auth-status,
.divider {
    color: #806247;
}

.wechat-panel-hero-icon {
    width: 66px;
    height: 66px;
    padding: 12px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff3c7, #ffc75c);
    box-shadow: inset 0 1px 0 rgba(255, 245, 196, 0.34);
}

.wechat-login-btn,
.login-btn {
    border: 1.5px solid #ffd35d;
    background: linear-gradient(180deg, #ff3636 0%, #c70c12 100%);
    color: #ffefb2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 7px 14px rgba(79, 0, 0, 0.24);
}

.wechat-login-btn:hover,
.login-btn:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(79, 0, 0, 0.3);
}

.bind-resume-card {
    border-color: rgba(224, 190, 125, 0.8);
    background: rgba(255, 248, 230, 0.76);
}

.bind-resume-card strong {
    color: #b35b00;
}

.bind-resume-card p {
    color: #806247;
}

.form-group input {
    border: 1px solid rgba(224, 190, 125, 0.8);
    border-radius: 14px;
    background: rgba(255, 253, 244, 0.92);
    color: #33170b;
}

.form-group input:focus {
    border-color: #d8982f;
    box-shadow: 0 0 0 4px rgba(216, 152, 47, 0.16);
}

.password-toggle {
    color: #9a6a32;
}

.password-toggle:hover {
    color: #d4121a;
}

.divider::before,
.divider::after {
    background: rgba(224, 190, 125, 0.72);
}

@media (max-width: 480px) {
    .login-page-shell {
        align-items: flex-start;
        padding: calc(18px + env(safe-area-inset-top)) 14px calc(20px + env(safe-area-inset-bottom));
    }
}
