/* PC 獨立認證頁（登入／註冊／找回密碼）專用樣式 — 嚴格限定 .wn-auth-* 作用域，不影響全站與彈窗樣式 */
#bodywrap .wn-auth-wrap {
    padding: 36px 16px 56px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
}

.wn-auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 28px 32px 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    text-align: left;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

.wn-auth-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 0 18px;
}

.wn-auth-tab {
    position: relative;
    display: inline-block;
    padding: 0 2px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.wn-auth-tab:hover {
    color: #2563eb;
    text-decoration: none;
}

.wn-auth-tab.cur {
    color: #0f172a;
    border-bottom: 2px solid #2563eb;
    margin-bottom: -1px;
}

.wn-auth-head {
    margin: 0 0 20px;
}

.wn-auth-head h1 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.wn-auth-sub {
    margin: 0 0 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.wn-auth-head .wn-auth-sub {
    margin: 0;
}

.wn-auth-field {
    margin-bottom: 16px;
    box-sizing: border-box;
}

.wn-auth-label {
    display: block;
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

.wn-req {
    color: #ef4444;
    margin-left: 3px;
    font-weight: 600;
}

.wn-auth-ipt {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 13px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 40px;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wn-auth-ipt::placeholder {
    color: #94a3b8;
}

.wn-auth-ipt:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.wn-auth-pw {
    position: relative;
    display: block;
}

.wn-auth-pw .wn-auth-ipt {
    padding-right: 42px;
}

.wn-auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.wn-auth-eye:hover {
    color: #2563eb;
    background: #eff6ff;
}

.wn-auth-eye svg {
    width: 18px;
    height: 18px;
    display: block;
}

.wn-auth-eye .eye-off {
    display: none;
}

.wn-auth-eye.is-open {
    color: #2563eb;
}

.wn-auth-eye.is-open .eye-on {
    display: none;
}

.wn-auth-eye.is-open .eye-off {
    display: block;
}

.wn-auth-code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wn-auth-code-row .wn-auth-ipt {
    flex: 1;
    min-width: 0;
}

.wn-auth-code-btn {
    flex-shrink: 0;
    height: 42px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wn-auth-code-btn:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.wn-auth-code-btn:disabled,
.wn-auth-code-btn[disabled] {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.wn-auth-cap-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wn-auth-cap-row .wn-auth-ipt {
    flex: 1;
    min-width: 0;
}

.wn-auth-cap-row img.captcha {
    height: 42px;
    width: auto;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
    background: #f8fafc;
}

/* 覆寫全站 style.css .e_sex 預設邊距與背景，維持註冊表單三選項膠囊排版 */
.wn-auth-card .wn-auth-sex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
}

.wn-auth-card .wn-auth-sex span {
    display: block;
    float: none;
    margin: 0;
    padding: 0 10px;
    height: 38px;
    line-height: 36px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    user-select: none;
    transition: all 0.15s ease;
}

.wn-auth-card .wn-auth-sex span:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.wn-auth-card .wn-auth-sex span.cur,
.wn-auth-card .wn-auth-sex span.cur:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.wn-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 0 18px;
    font-size: 13px;
    color: #475569;
}

.wn-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 400;
    color: #475569;
}

.wn-auth-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.wn-auth-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.wn-auth-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.wn-auth-submit {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 16px;
    margin-top: 6px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.wn-auth-submit:hover {
    opacity: 0.94;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.wn-auth-submit:active {
    transform: translateY(1px);
}

.wn-auth-submit:disabled,
.wn-auth-submit[disabled] {
    opacity: 0.72;
    cursor: wait;
}

/* 覆寫 main.css .btnloading，避免提交時按鈕變全白且保留載入轉圈圖示 */
.wn-auth-card .wn-auth-submit.btnloading,
.wn-auth-card .wn-auth-submit.btnloading:hover {
    background: #3b82f6 url('/themes/weitu/images/btn_loading.gif') no-repeat center;
    text-indent: -9999px;
    overflow: hidden;
    opacity: 0.85;
    cursor: wait;
    box-shadow: none;
}

/* 覆寫 main.css .failed/.success，使 Mui.form.sendAuto 提示條融入卡片 */
.wn-auth-card .meiu_notice_div {
    margin: 0 0 16px;
    float: none;
    width: auto;
}

.wn-auth-card .meiu_notice_div .failed {
    margin: 0;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
    float: none;
    width: auto;
}

.wn-auth-card .meiu_notice_div .success {
    margin: 0;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9px;
    color: #047857;
    font-size: 13px;
    line-height: 1.5;
    float: none;
    width: auto;
}

.wn-auth-foot {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.wn-auth-foot a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.wn-auth-foot a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
