/* ============================================================
   TWDIW 數位憑證皮夾 - 註冊頁樣式
   功能一：手機 QRCode 驗證
   功能二：畢業證書資料帶入
   ============================================================ */

/* ------ 共用變數 ------ */
:root {
    --twdiw-primary: #4A90D9;
    --twdiw-primary-hover: #357ABD;
    --twdiw-success-ckeck: #64b9d3;
    --twdiw-success: #34A853;
    --twdiw-success-bg: #E8F5E9;
    --twdiw-success-border: #C8E6C9;
    --twdiw-fail: #EA4335;
    --twdiw-fail-bg: #FDECEA;
    --twdiw-fail-border: #F5C6CB;
    --twdiw-warning-bg: #FFF3E0;
    --twdiw-warning-border: #FFE0B2;
    --twdiw-gray-light: #F5F5F5;
    --twdiw-gray-border: #E0E0E0;
    --twdiw-gray-text: #66667a;
    --twdiw-radius: 8px;
}

section {
  margin: 0;
}

hr {
  margin-bottom: .5rem;
  margin-top: .5rem;
}

/* ============================================================
   功能一：手機驗證方式選擇（Step 2 改版）
   ============================================================ */

/* step1 手機輸入框提示定位 */
#twdiw-mobile-input .tooltiptext .hintMsg.mobileFirst {
    top: 11px;
    left: 20rem;
}

.twdiw-verify-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 18px 0 8px 0;
}

/* 驗證方式選擇卡片 */
.twdiw-verify-method {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

.twdiw-verify-method .method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--twdiw-gray-border);
    border-radius: var(--twdiw-radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.twdiw-verify-method .method-card:hover {
    border-color: #6a4fd0;
    background-color: rgba(106, 79, 208, 0.03);
}

.twdiw-verify-method .method-card.active {
    border-color: #6a4fd0;
    background-color: #f7f3fd;
}

.twdiw-verify-method .method-card .method-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #6a4fd0;
}

.twdiw-verify-method .method-card .method-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0eaf8;
    color: #6a4fd0;
    font-size: 18px;
}

.twdiw-verify-method .method-card.active .method-icon {
    background-color: rgba(106, 79, 208, 0.12);
}

.twdiw-verify-method .method-card .method-text {
    flex: 1;
    min-width: 0;
}

.twdiw-verify-method .method-card .method-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.twdiw-verify-method .method-card .method-desc {
    font-size: 12px;
    color: var(--twdiw-gray-text);
    line-height: 1.4;
}

/* disabled 狀態（暫時關閉入口） */
.twdiw-verify-method .method-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.twdiw-verify-method .method-card.disabled .method-disabled-hint {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ============================================================
   Step 3A：簡訊驗證頁（依 prototype：標題 → 3 碼識別碼＋4 碼驗證碼 → 重新發送 → 驗證並繼續）
   ============================================================ */
.twdiw-sms-verify {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 8px 0 4px;
}

.twdiw-sms-verify .sms-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.twdiw-sms-verify .sms-hint {
    font-size: 14px;
    color: #555;
    margin-top: -8px;
}

.twdiw-sms-verify .sms-hint strong {
    color: #222;
}

.twdiw-sms-verify .sms-code-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.twdiw-sms-verify .sms-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.twdiw-sms-verify .sms-code-box {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    box-sizing: border-box;
    border: 1px solid #bdbdbd;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #222;
    text-transform: uppercase;
    outline: none;
    padding: 0;
}

.twdiw-sms-verify .sms-code-box.prefix {
    background: #f7f5fd;
    color: #444;
}

/* 三分鐘內重複索取時，識別碼改由使用者輸入 */
.twdiw-sms-verify .sms-code-box.prefix.editable {
    background: #fff;
    color: #222;
}

.twdiw-sms-verify .sms-code-box:focus {
    border: 2px solid #6a4fd0;
}

.twdiw-sms-verify .sms-code-dash {
    flex-shrink: 0;
    color: #888;
    font-size: 18px;
}

.twdiw-sms-verify .sms-error {
    font-size: 13px;
    color: var(--twdiw-fail);
    margin-top: -6px;
}

.twdiw-sms-verify .sms-resend-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    font-size: 13px;
    color: #666;
}

.twdiw-sms-verify .sms-resend-link,
.twdiw-sms-verify .sms-switch-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #2a8fd6;
    cursor: pointer;
}

.twdiw-sms-verify .sms-resend-link:disabled {
    color: #aaa;
    cursor: not-allowed;
}

.twdiw-sms-verify .sms-switch-link {
    text-decoration: underline;
}

.twdiw-sms-verify .twdiw-btn.primary {
    align-self: center;
    max-width: 320px;
    border-radius: 999px;
}

.twdiw-sms-verify .sms-switch {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    color: #555;
}

/* ============================================================
   Step 3B：數位皮夾 QR Code 驗證頁
   ============================================================ */
.twdiw-qrcode-page {
    /* padding: 20px 0; */
    padding-top: 10px;
    text-align: center;
}

.twdiw-qrcode-page .qrcode-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    text-align: left;
}


/* 返回連結（各子步驟內的返回連結） */
.twdiw-sms-verify .qr-back-link,
.twdiw-qrcode-page .qr-back-link {
    display: block;
    text-align: left;
    font-size: 14px;
    color: var(--twdiw-gray-text);
    text-decoration: none;
    margin-bottom: 24px;
}

.twdiw-qrcode-page .qr-subtitle {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    margin: -8px 0 16px;
    line-height: 1.5;
}

#twdiw-degree-qr-error {
    color: var(--twdiw-fail);
    font-size: 13px;
    margin: 4px 0;
}

.twdiw-sms-verify .qr-back-link:hover,
.twdiw-qrcode-page .qr-back-link:hover {
    color: #333;
}

/* QR Code 圖片區 */
.twdiw-qrcode-page .qr-image-wrapper {
    display: inline-block;
    /* padding: 16px; */
    /* border: 1px solid var(--twdiw-gray-border); */
    /* border-radius: var(--twdiw-radius); */
    background: #fff;
    margin-bottom: 12px;
    position: relative;
}

.twdiw-qrcode-page .qr-image-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

/* QR Code Loading 文字（API 回應前顯示） */
.twdiw-qrcode-page .qr-loading-text {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}

.twdiw-qrcode-page .qr-image-wrapper.expired {
    opacity: 0.3;
}

.twdiw-qrcode-page .qr-image-wrapper.expired::after {
    content: 'QR Code 已逾期';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
}

/* 倒數計時 */
.twdiw-qrcode-page .qr-countdown {
    font-size: 14px;
    color: var(--twdiw-gray-text);
    margin-bottom: 8px;
}

.twdiw-qrcode-page .qr-countdown .countdown-time {
    font-weight: 600;
    color: #d93025;
}

.twdiw-qrcode-page .qr-countdown .countdown-time.warning {
    color: var(--twdiw-fail);
}

/* 重新產生連結 */
.twdiw-qrcode-page .qr-refresh-link {
    display: inline-block;
    font-size: 14px;
    color: var(--twdiw-primary);
    text-decoration: underline;
    margin-bottom: 24px;
}

.twdiw-qrcode-page .qr-refresh-link:hover {
    color: var(--twdiw-primary-hover);
}

/* 步驟列表 */
.twdiw-qrcode-page .qr-steps {
    text-align: left;
    margin: 0 0 10px;
    transform: translate(3rem, 0px);
}

.twdiw-qrcode-page .qr-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.twdiw-qrcode-page .qr-step-item:last-child {
    margin-bottom: 0;
}

.twdiw-qrcode-page .qr-step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

/* 三個圓圈呈現連續漸層效果：藍(#03aff0) → 紫(#9438cc)，各圓取對應色段 */
.twdiw-qrcode-page .qr-step-item:nth-child(1) .qr-step-number {
    background: linear-gradient(180deg, #03aff0 0%, #5a71de 100%);
}

.twdiw-qrcode-page .qr-step-item:nth-child(2) .qr-step-number {
    background: linear-gradient(180deg, #5a71de 0%, #7a55cb 100%);
}

.twdiw-qrcode-page .qr-step-item:nth-child(3) .qr-step-number {
    background: linear-gradient(180deg, #7a55cb 0%, #9438cc 100%);
}

.twdiw-qrcode-page .qr-step-content {
    flex: 1;
    min-width: 0;
}

.twdiw-qrcode-page .qr-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    line-height: 1.5;
}

.twdiw-qrcode-page .qr-step-desc {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    line-height: 1.4;
}

/* APP 下載列 */
.twdiw-qrcode-page .qr-app-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    margin-top: 8px;
    flex-wrap: wrap;
}

.twdiw-qrcode-page .qr-app-download-icon {
    color: var(--twdiw-primary);
    font-size: 16px;
    transform: translateY(2px);
}
.twdiw-qrcode-page .qr-app-download-icon img {
  width: 24px;
  border: none;
  text-decoration: none;
}

.twdiw-qrcode-page .qr-app-download-text {
    font-size: 13px;
    color: var(--twdiw-gray-text);
}

.twdiw-qrcode-page .qr-app-download-btn,
.logincontent .twdiw-qrcode-page a.qr-app-download-btn {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid #dbdbdb;
    border-radius: 999px;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.twdiw-qrcode-page .qr-app-download-btn:hover,
.logincontent .twdiw-qrcode-page a.qr-app-download-btn:hover {
    background-color: var(--twdiw-gray-light);
    color: #333333;
}

/* ============================================================
   step2-2-0：M版手機驗證確認頁
   ============================================================ */
.twdiw-mobile-confirm-page {
    padding: 20px 20px 11rem;
    text-align: center;
}

.twdiw-mobile-confirm-page .qr-back-link {
    display: block;
    text-align: left;
    font-size: 14px;
    color: #555555;
    text-decoration: none;
    margin-bottom: 16px;
    cursor: pointer;
}

.twdiw-mobile-confirm-page .qr-back-link:hover {
    color: #333;
}

.twdiw-mobile-confirm-page .mobile-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
}

.twdiw-mobile-confirm-page .mobile-confirm-logo {
    margin: 0 auto 24px;
}

.twdiw-mobile-confirm-page .mobile-confirm-logo img {
    width: 96px;
    height: 96px;
    border-radius: 20px;
}

.twdiw-mobile-confirm-page .mobile-confirm-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.twdiw-mobile-confirm-page .mobile-confirm-install-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}

.logincontent .twdiw-mobile-confirm-page a.mobile-confirm-download-link,
.twdiw-mobile-confirm-page .mobile-confirm-download-link {
    font-size: 14px;
    color: var(--twdiw-primary);
    text-decoration: underline;
    cursor: pointer;
}

.logincontent .twdiw-mobile-confirm-page a.mobile-confirm-download-link:hover,
.twdiw-mobile-confirm-page .mobile-confirm-download-link:hover {
    color: #028fd0;
}

/* ============================================================
   step2-loading：Loading 過渡畫面
   ============================================================ */
.twdiw-loading-page {
    padding: 60px 20px 40px;
    text-align: center;
}

/* Logo + 外環旋轉容器 */
.twdiw-loading-page .loading-logo-wrapper {
    position: relative;
    width: 142px;
    height: 142px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twdiw-loading-page .loading-logo-img {
    width: 64px;
    border-radius: 14px;
}

/* 外環旋轉圓環 */
.twdiw-loading-page .loading-spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 142px;
    height: 142px;
    border: 6px solid var(--twdiw-gray-border);
    border-top-color: #03aff0;
    border-right-color: #5a71de;
    border-radius: 50%;
    animation: twdiw-spin 1.2s linear infinite;
    box-sizing: border-box;
}

@keyframes twdiw-spin {
    to { transform: rotate(360deg); }
}

/* 大標題：漸層文字效果 */
.twdiw-loading-page .loading-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(0deg, #03aff0 0%, #9438cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* 閃爍動畫內文 */
.twdiw-loading-page .loading-hint {
    font-size: 14px;
    color: var(--twdiw-gray-text);
    margin-bottom: 16px;
}

.twdiw-blink {
    animation: twdiw-blink 2s ease-in-out infinite;
}

@keyframes twdiw-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 手機號碼 */
.twdiw-loading-page .loading-mobile {
    font-size: 13px;
    font-weight: 300;
    color: #333;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* 取消文字 */
.twdiw-loading-page .loading-cancel-link {
    display: inline-block;
    font-size: 14px;
    color: #555555;
    cursor: pointer;
}

.twdiw-loading-page .loading-cancel-link:hover {
    color: #333;
    text-decoration: underline;
}

/* ============================================================
   共用結果圖示 .twdiw-result-icon（step2 全頁 + step3 modal 共用）
   全頁版本為雙環大圖示；modal 內縮小（由 .twdiw-modal 覆寫）
   ============================================================ */
.twdiw-result-icon {
    width: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.twdiw-result-icon.success {
    background: #e8f5ee;
    color: #fff;
}

.twdiw-result-icon.success i {
    width: 65px;
    aspect-ratio: 1 / 1;
    line-height: 65px;
    text-align: center;
    border-radius: 50%;
    background: #1e7a46;
    font-size: 35px;
}

.twdiw-result-icon.fail {
    background: #fdecea;
    color: #fff;
}

.twdiw-result-icon.fail i {
    width: 65px;
    height: 65px;
    line-height: 65px;
    text-align: center;
    border-radius: 50%;
    background: #c0392b;
    font-size: 35px;
}

/* ============================================================
   共用可能原因區塊 .twdiw-result-reasons（step2 全頁 + step3 modal 共用）
   ============================================================ */
.twdiw-result-reasons {
    text-align: left;
    background: #f7f7f8;
    border-radius: var(--twdiw-radius);
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--twdiw-gray-text);
    line-height: 1.6;
}

.twdiw-result-reasons .reason-title {
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.twdiw-result-reasons .reason-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.twdiw-result-reasons .reason-list li {
    margin-bottom: 2px;
    list-style: disc;
}

/* ============================================================
   step2-2-2 / step2-2-3：驗證結果全頁
   ============================================================ */
.twdiw-result-page {
    padding: 40px 20px;
    text-align: center;
}

/* ============================================================
   共用可能原因區塊 .twdiw-result-reasons（step2 全頁 + step3 modal 共用）
   ============================================================ */
.twdiw-result-reasons {
    text-align: left;
    background: #f7f7f8;
    border-radius: var(--twdiw-radius);
    padding: 16px 20px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--twdiw-gray-text);
    line-height: 1.6;
}

.twdiw-result-reasons .reason-title {
    font-weight: 500;
    color: #555;
    margin-bottom: 4px;
}

.twdiw-result-reasons .reason-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.twdiw-result-reasons .reason-list li {
    margin-bottom: 2px;
    list-style: disc;
}

/* ============================================================
   step2-2-2 / step2-2-3：驗證結果全頁
   ============================================================ */
.twdiw-result-page .result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.twdiw-result-page .result-subtitle {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    margin-bottom: 20px;
}

.twdiw-result-page .result-mobile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--twdiw-gray-border);
    border-radius: 50px;
    font-size: 15px;
    color: #333;
    margin-bottom: 24px;
}

.twdiw-result-page .result-mobile-badge .fa-mobile {
    font-size: 18px;
    color: #555;
}

.twdiw-result-page .result-mobile-check {
    color: #64b9d3;
    font-size: 16px;
}

.twdiw-result-page .result-message {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* 成功頁：自動跳轉倒數 */
.twdiw-result-page .result-redirect {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    margin: 12px 0 20px;
}

/* ============================================================
   功能二：畢業證書皮夾入口（設計稿 RegisterForm）
   ============================================================ */
.twdiw-degree-entry {
    margin-bottom: 16px;
}

.twdiw-degree-entry .entry-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid #cfe0f5;
    border-radius: 12px;
    background: #f5f9ff;
    text-align: left;
}

.twdiw-degree-entry .entry-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
}

.twdiw-degree-entry .entry-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 180px;
    min-width: 0;
}

.twdiw-degree-entry .entry-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d3f6e;
}

.twdiw-degree-entry .entry-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #4a5568;
}

.twdiw-degree-entry .btn-import {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.twdiw-degree-entry .btn-import:hover {
    opacity: 0.9;
}

/* ============================================================
   功能二：畢業證書結果彈窗（Modal）
   ============================================================ */
.twdiw-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.twdiw-modal-overlay.show {
    display: flex;
}

.twdiw-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 530px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 38px 24px 30px;
    position: relative;
}

.twdiw-modal .modal-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #1e7a46;
}

.twdiw-modal .modal-subtitle {
    font-size: 14px;
    color: var(--twdiw-gray-text);
    text-align: center;
    margin-bottom: 16px;
}

/* 帶入結果清單（兩欄 grid） */
.twdiw-modal .import-section {
    margin: 0 20px 16px;
    padding: 18px 18px;
    background: #f6faf7;
    border-radius: var(--twdiw-radius);
}

.twdiw-modal .import-section .section-label {
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #14532d;
    margin-bottom: 10px;
}

.twdiw-modal .import-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* missing section：白底 + 邊框 */
.twdiw-modal .import-section--missing {
    background: #f7f7f8;
    border: 1px solid #f7f7f8;
}

.twdiw-modal .import-section--missing .section-label {
    color: #555;
}

/* hint 在 missing section 框內 */
.twdiw-modal .import-section--missing .modal-hint {
    text-align: left;
    margin: 10px 0 0;
    padding: 0;
}

.twdiw-modal .import-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 12px;
    font-size: 14px;
}

/* 最後一行移除底部間距 */
.twdiw-modal .import-list li:nth-last-child(-n+2) {
    margin-bottom: 0;
}

.twdiw-modal .import-list li .field-icon {
    flex-shrink: 0;
    width: 20px;
    aspect-ratio: 1 / 1;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twdiw-modal .import-list li .field-icon.ok {
    background: var(--twdiw-success-ckeck);
    color: #fff;
}

.twdiw-modal .import-list li .field-icon.miss {
    border: solid 0.5px #8a8a8a;
    color: #8a8a8a;
}

.twdiw-modal .import-list li .field-name {
    color: #333;
    font-size: 14px;
}

.twdiw-modal .modal-hint {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    margin: 12px 0;
    line-height: 1.5;
    text-align: center;
}

.twdiw-modal .modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.twdiw-modal .modal-actions .twdiw-btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* modal 內的 reg-btn（modal 在 .logincontent 外，需獨立宣告） */
.twdiw-modal .modal-actions .reg-btn {
    display: block;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 65px;
    margin: 0;
    letter-spacing: 2px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    width: 310px;
    height: 46px;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.twdiw-modal .modal-actions .reg-btn-cram {
    color: #fff;
    background: transparent linear-gradient(90deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
}

.twdiw-modal .modal-actions .reg-btn-cram:hover {
    -webkit-box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    color: #fff;
}

.twdiw-modal .modal-actions .reg-btn-outline {
    color: #333;
    background: #fff;
    border: 1px solid var(--twdiw-gray-border);
    font-weight: 400;
}

.twdiw-modal .modal-actions .reg-btn-outline:hover {
    background: var(--twdiw-gray-light);
    color: #333;
}

/* ============================================================
   功能二：皮夾帶入欄位標籤 + 頂部提示
   ============================================================ */

/* 標籤定位用的外層 */
.twdiw-tag-host {
    position: relative;
}

/* 欄位右側「皮夾帶入」標籤 */
.twdiw-field-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #e3f0fa;
    color: #1f5f8b;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 999px;
    pointer-events: none;
    white-space: nowrap;
}

/* 欄位裡的標籤：蓋掉 .reg-inputSty span／.reg-select-item span（圖示用的固定寬度 40px 會把標籤擠到框外） */
.reg-tablebar .reg-inputSty .twdiw-field-tag,
.reg-tablebar .reg-select-item .twdiw-field-tag {
    top: 50%;
    width: auto;
    color: #1f5f8b;
    text-align: left;
    z-index: 3;
}

/* 下拉選單讓出右側箭頭 */
.reg-tablebar .reg-select-item .twdiw-field-tag {
    right: 32px;
}

/* 入學／畢業年月：年、月兩個下拉選單排成一列 */
.reg-tablebar .twdiw-ym {
    display: flex;
    gap: 8px;
}

.reg-tablebar .twdiw-ym .reg-select-item.year,
.reg-tablebar .twdiw-ym .reg-select-item.month {
    margin-right: 0;
}

.reg-tablebar .twdiw-ym .reg-select-item.year {
    flex: 1 1 62%;
    width: auto;
}

.reg-tablebar .twdiw-ym .reg-select-item.month {
    flex: 1 1 38%;
    width: auto;
}

/* 已帶入欄位的 input 樣式（設計稿 RegisterForm 皮夾欄位：淺藍底、藍框） */
.reg-inputSty input.twdiw-imported,
.reg-inputSty select.twdiw-imported {
    background-color: #f4f9fe !important;
    border-color: #9cc7e8 !important;
}

/* 下拉選單的圖示與箭頭在 select 底下，底色改上在外框，select 維持透明才看得到 */
.reg-tablebar .reg-select-item:has(select.twdiw-imported) {
    background-color: #f4f9fe;
    border-color: #9cc7e8;
}

/* 頂部帶入成功提示（設計稿 RegisterForm 已帶入狀態） */
.twdiw-top-notice {
    display: none;
    border: 1px solid #bfe3cd;
    background: #f1faf4;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left;
}

.twdiw-top-notice.show {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.twdiw-top-notice .notice-icon {
    flex-shrink: 0;
}

/* 預設只顯示綠色 OK 圖示，warn / error 隱藏 */
.twdiw-top-notice .notice-icon-warn,
.twdiw-top-notice .notice-icon-error,
.twdiw-top-notice.is-edited .notice-icon-ok,
.twdiw-top-notice.is-error .notice-icon-ok {
    display: none;
}

.twdiw-top-notice.is-edited .notice-icon-warn {
    display: block;
}

.twdiw-top-notice.is-error .notice-icon-error {
    display: block;
}

/* 改過皮夾帶入的資料：黃色提示（設計稿 RegisterForm edited 狀態） */
.twdiw-top-notice.is-edited {
    border-color: #f0d48a;
    background: #fff8e6;
}

.twdiw-top-notice.is-edited .notice-text .notice-title {
    color: #7a4f00;
}

.twdiw-top-notice.is-edited .notice-text .notice-desc {
    color: #6b5a33;
}

/* 數發部驗證錯誤：紅色提示 */
.twdiw-top-notice.is-error {
    border-color: var(--twdiw-fail-border);
    background: var(--twdiw-fail-bg);
}

.twdiw-top-notice.is-error .notice-text .notice-title {
    color: #c0392b;
}

.twdiw-top-notice.is-error .notice-text .notice-desc {
    color: #8b3a2f;
}

.twdiw-top-notice .notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 180px;
    min-width: 0;
}

.twdiw-top-notice .notice-text .notice-title {
    font-size: 16px;
    font-weight: 700;
    color: #14532d;
}

.twdiw-top-notice .notice-text .notice-desc {
    font-size: 13px;
    color: #3f5f4a;
}

.twdiw-top-notice .notice-reimport {
    flex-shrink: 0;
    color: #1f7fc4;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    background: none;
    border: none;
    padding: 0;
    white-space: nowrap;
}

/* ============================================================
   共用按鈕樣式
   ============================================================ */
.twdiw-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, opacity 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.twdiw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.twdiw-btn.primary {
    background: var(--twdiw-primary);
    color: #fff;
}

.twdiw-btn.primary:hover:not(:disabled) {
    background: var(--twdiw-primary-hover);
}

/* 與註冊頁主按鈕相同的漸層膠囊按鈕 */
.twdiw-btn.twdiw-btn--gradient {
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    border-radius: 999px;
    color: #fff;
}

.twdiw-btn.twdiw-btn--gradient:hover:not(:disabled) {
    background: linear-gradient(90deg, #2f93d1, #7a34b3);
}

.twdiw-btn.success {
    background: var(--twdiw-success);
    color: #fff;
}

.twdiw-btn.outline {
    background: #fff;
    color: var(--twdiw-primary);
    border: 1px solid var(--twdiw-primary);
}

.twdiw-btn.outline:hover:not(:disabled) {
    background: rgba(74, 144, 217, 0.06);
}

.twdiw-btn.text-link {
    background: none;
    color: var(--twdiw-primary);
    padding: 6px;
    text-decoration: underline;
    font-size: 13px;
    width: auto;
}

/* ============================================================
   隱藏/顯示控制
   ============================================================ */
.twdiw-hidden {
    display: none !important;
}

/* ============================================================
   RWD
   ============================================================ */
@media (max-width: 768px) {
    .twdiw-qrcode-page .qr-image-wrapper img {
        width: 180px;
        height: 180px;
    }

    .twdiw-modal {
        width: 95%;
        padding: 20px 16px;
    }

    .twdiw-qrcode-page .qr-app-download {
        flex-direction: column;
    }
}

/* ============================================================
   階段一 批次 1：表單核心 CSS（從 loginNewPageStyle.css 遷移）
   原始行號 313~847，選擇器加 reg- 前綴
   ============================================================ */

/* --- tablebar 容器 --- */
.logincontent .reg-tablebar {
    /* padding: 0.5rem 0 0; */
    color: #a7a7a7;
    display: flex;
    flex-direction: column;
    gap: 8px 0;
}

.logincontent.type01 .reg-tablebar {
    padding: 0rem 2rem;
}

@media screen and (max-width: 767px) {
    .logincontent.type01 .reg-tablebar {
        padding: 0;
    }
    .logincontent .reg-tablebar {
        gap: 2px 0;
    }
}

.logincontent .reg-tablebar a {
    color: #1f7fcf;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.logincontent .reg-tablebar a:hover {
    color: #0988CB;
}

.reg-tablebar li.twoItem-box {
    font-size: 0;
    margin-bottom: 0.5rem;
}

.reg-tablebar li.is-taiwanese {
  margin-bottom: 0.5rem;
}

/* --- radioSty --- */
.reg-tablebar .reg-radioSty {
    display: flex;
    gap: 10px;
}

/* --- inputSty --- */
.reg-tablebar .reg-inputSty {
    position: relative;
}

.reg-tablebar .reg-inputSty span {
    color: #6f6f6f;
    position: absolute;
    top: 50%;
    width: 40px;
    text-align: center;
    transform: translateY(-50%);
    transition: 0.3s;
}

.reg-tablebar .reg-inputSty span.EnterCodeText {
    color: #6C757D;
    text-indent: 42px;
    font-weight: 800;
    left: 0;
    top: 20px;
}

.reg-tablebar .reg-inputSty span.inputicon {
    left: 0;
}

.reg-tablebar .reg-inputSty span i {
    font-size: 16px;
}

.reg-tablebar .reg-inputSty span i.fa-mobile {
    font-size: 22px;
}

.reg-tablebar .reg-inputSty input {
    width: 100%;
    height: 46px;
    font-family: "微軟正黑體", Arial, sans-serif !important;
    font-size: 1rem;
    outline: none;
    text-indent: 30px;
    transition: 0.3s;
    box-shadow: none;
    -webkit-appearance: none;
    display: block;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border: 1px solid #CBCBCB;
    border-radius: 6px;
    padding: 0.9rem 1rem 0.9rem 0.5rem;
}

.reg-tablebar .reg-inputSty input.EnterCode {
    text-indent: 74px;
}

.reg-tablebar .reg-inputSty input:focus,
.reg-tablebar .reg-sexmaxclick select:focus {
    color: #495057;
    border-color: #80bdff;
    outline: 0;
    border: 1px solid #04AFF0;
    -webkit-box-shadow: 0 0 0 3px #d1eaf8;
    box-shadow: 0 0 0 3px #d1eaf8;
}

.reg-tablebar .reg-inputSty input:focus + span i {
    background: linear-gradient( -45deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    background: -webkit-linear-gradient(-45deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.reg-tablebar .reg-inputSty input::placeholder {
    color: #999;
    opacity: 1;
}

.reg-tablebar .reg-inputSty input::-ms-input-placeholder {
    color: #999;
}

/*清除Edge瀏覽器 password密碼input的明文圖標*/
.reg-tablebar .reg-inputSty input::-ms-reveal {
    display: none;
}

.reg-tablebar .reg-inputSty input.error {
    border-color: #FF6B81;
}

.reg-tablebar .reg-inputSty input.fontSize13::placeholder {
    font-size: 13px;
}

.reg-tablebar .reg-inputSty div.btns,
.reg-tablebar .reg-inputSty button,
.reg-tablebar .reg-inputSty a.gobackbtn {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
}

.reg-tablebar .reg-inputSty div.eyebor {
    right: 5px;
    position: absolute;
    top: 25%;
}

.reg-tablebar .reg-inputSty div.downbor {
    right: 9px;
    background-color: #fff;
    position: absolute;
    top: 10px;
}

.reg-tablebar .reg-inputSty div.checkedicon {
    right: 35px;
    position: absolute;
    top: 10px;
}

.reg-tablebar .reg-inputSty div.checkedicon i {
    color: #4BC74C;
}

.reg-tablebar .reg-inputSty div.checkicon {
    right: 40px;
    color: #4BC74C;
}

.reg-tablebar .reg-inputSty div i {
    font-size: 20px;
}

.reg-tablebar .reg-inputSty div i.fa.fa-eye-slash {
    color: #999;
}

.reg-tablebar .reg-inputSty div i.fa.fa-eye {
    color: #4BC74C;
}

.reg-tablebar .reg-inputSty button {
    right: 0;
    border: none;
    outline: none;
    background: transparent linear-gradient(90deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-family: "微軟正黑體";
    font-weight: 600;
}

.reg-tablebar .reg-inputSty button.disabled {
    cursor: inherit;
    background: #f2f2f2;
    color: #505050;
    right: 1px;
}

.reg-tablebar .reg-inputSty span.codeTips {
    right: 0;
    border: none;
    outline: none;
    background: #4983DB;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-family: "微軟正黑體";
    width: auto;
    top: 50%;
}

.reg-tablebar .reg-inputSty span.codeTips.disabled {
    background: #999999;
    cursor: inherit;
}

.reg-tablebar .reg-inputSty a.gobackbtn {
    width: 35px;
    height: 40px;
    line-height: 40px;
    background: #FF6B81;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.reg-tablebar .reg-inputSty a.gobackbtn i {
    font-size: 14px;
}

.reg-tablebar .reg-inputSty span.awicon {
    position: absolute;
    top: 50%;
    right: 0;
    z-index: 2;
    display: block;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
}

.reg-tablebar .reg-inputSty span.awicon i {
    font-size: 20px;
    color: #999;
}

/* --- floatL → reg-floatL (改為 flex) --- */
.reg-tablebar .reg-floatL {
    width: calc(100% - 5rem);
    display: inline-block;
    vertical-align: top;
}

.reg-tablebar .reg-floatL .reg-inputSty {
    margin-bottom: 0;
}

@media screen and (max-width: 767px) {
    .reg-tablebar .reg-floatL {
        margin-bottom: 0;
    }
}

/* --- sexmaxclick → reg-sexmaxclick --- */
.reg-tablebar .reg-sexmaxclick {
    display: inline-block;
    width: 4.75rem;
    margin-left: 0.25rem;
    position: relative;
    border: 1px solid #CBCBCB;
    border-radius: 6px;
}

.reg-tablebar .reg-sexmaxclick select {
    width: 100%;
    height: 44px;
    border: none;
    padding: 0 8px;
    font: normal normal normal 14px/1 FontAwesome, 微軟正黑體;
    color: #888;
    outline: none;
    transition: 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
    position: relative;
    border: 1px solid #fff;
    border-radius: 6px;
    background-color: transparent;
}

.reg-tablebar .reg-sexmaxclick select::-ms-expand {
    display: none;
}

.reg-tablebar .reg-sexmaxclick:after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: auto;
    background-image: url(../img/icon_arrow_3.svg);
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translate(-20%, -50%);
    z-index: 2;
}

.reg-tablebar .reg-sexmaxclick option {
    padding: 5px;
}

.reg-tablebar .reg-sexmaxclick span {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    text-align: center;
    transform: translateY(-50%);
    cursor: pointer;
}

.reg-tablebar .reg-sexmaxclick span.reg-errorMsg {
    transform: none;
    left: 88px;
    text-align: left;
}

.reg-tablebar .reg-sexmaxclick.error {
    border-color: #FF6B81;
}

.reg-tablebar li.mobile-inlineBox {
    font-size: 0;
}

.reg-tablebar .reg-inputSty select:focus + span {
    color: #777;
}

.reg-tablebar .reg-inputSty .btns {
    position: absolute;
    right: 1px;
    font-size: 0;
    border-radius: 6px;
    background: transparent linear-gradient(90deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
}

.reg-tablebar .reg-inputSty .btns button {
    display: inline-block;
    position: static;
    transform: none;
    vertical-align: middle;
    background-color: transparent;
    color: #fff;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    font-weight: 600;
}

.reg-tablebar .reg-inputSty .btns button:hover {
    -webkit-box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    color: #fff;
}

.reg-tablebar .reg-inputSty .btns .change {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    border-left: 1px solid #fff;
    padding: 10px;
    vertical-align: middle;
    height: 39px;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.reg-tablebar .reg-inputSty .btns .change:hover {
    -webkit-box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    color: #fff;
}

.reg-tablebar .reg-inputSty .btns .change i {
    font-size: 14px;
    transform: translate(0px, 2px);
}

.reg-tablebar .en_link {
    margin-bottom: 5px;
    display: flex;
    justify-content: flex-end;
}

/* --- select_item → reg-select-item（出生年月日） --- */
.reg-tablebar .reg-select-item {
    display: inline-block;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
}

.reg-tablebar .reg-select-item.year {
    width: 58%;
    margin-right: 1%;
}

.reg-tablebar .reg-select-item.year select {
    padding-left: 40px;
}

.reg-tablebar .reg-select-item.month {
    width: 20%;
    margin-right: 1%;
}

.reg-tablebar .reg-select-item.day {
    width: 20%;
}

.reg-tablebar .reg-select-item select:focus {
    border-color: #a8dce2;
    box-shadow: 0 2px 0 0 #a8dce2;
}

.reg-tablebar .reg-select-item select {
    width: 100%;
    height: 44px;
    border: none;
    padding: 0 8px;
    font: normal normal normal 14px/1 FontAwesome, 微軟正黑體;
    color: #888;
    outline: none;
    transition: 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 2;
    position: relative;
    background-color: transparent;
}

.reg-tablebar .reg-select-item select::-ms-expand {
    display: none;
}

.reg-tablebar .reg-select-item select:focus + span {
    background: linear-gradient( -45deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    background: -webkit-linear-gradient(-45deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.reg-tablebar .reg-select-item:after {
    position: absolute;
    top: 23%;
    right: .5em;
    font-family: "FontAwesome";
    content: "\f078";
    font-size: 18px;
    color: #999;
}

.reg-tablebar .reg-select-item option {
    padding: 5px;
}

.reg-tablebar .reg-select-item span {
    color: #777;
    position: absolute;
    top: 55%;
    width: 40px;
    text-align: center;
    transform: translateY(-50%);
    transition: 0.3s;
}

.reg-tablebar .reg-select-item span.EnterCodeText {
    color: #6C757D;
    text-indent: 42px;
    font-weight: 800;
    left: 0;
    top: 20px;
}

.reg-tablebar .reg-select-item span.inputicon {
    left: 0;
}

.reg-tablebar .reg-select-item span i {
    font-size: 20px;
}

.reg-tablebar .reg-select-item span i.fa-mobile {
    font-size: 32px;
}

.reg-tablebar .reg-select-item.error {
    border-color: #FF6B81;
}

/* ============================================================
   階段一 批次 2：按鈕與訊息 CSS（從 loginNewPageStyle.css 遷移）
   按鈕與訊息（排除 errorBox/sidebar/loginError/forgotPwd）
   ============================================================ */

/* --- tooltiptext 輸入&錯誤提示框 --- */
.logincontent .reg-tooltiptext {
    position: relative;
    top: -40px;
}

.logincontent .reg-tooltiptext span {
    width: 330px;
    height: 44px;
    font-size: 13px;
    line-height: 15px;
    color: #000;
    border-radius: 6px;
    padding: 3px 5px;
    position: absolute;
    z-index: 1;
    /* 卡片加寬（440 → 530）後，right: -110% 會把提示框推得離輸入框太遠；改成固定緊貼輸入框右側，與改版前的距離相同 */
    left: calc(100% + 12px);
    right: auto;
    top: 17px;
    transform: translate(0, -50%);
    margin: auto;
    -webkit-box-shadow: 0 2px 5px rgb(0, 0, 0, 0.16);
    box-shadow: 0 2px 5px rgb(0, 0, 0, 0.16);
}

.logincontent .reg-tooltiptext span p {
    display: inline-block;
    vertical-align: middle;
}

/*輸入中提示*/
.logincontent .reg-tooltiptext span.reg-hintMsg {
    background: #F2F2F2;
    display: none;
}

/*錯誤提示*/
.logincontent .reg-tooltiptext span.reg-errorMsg {
    background: #F2F2F2;
    color: #D60505;
    display: none;
}

.logincontent .reg-tooltiptext span.show {
    /* display: block; */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logincontent .reg-tooltiptext span.reg-hintMsg:before,
.logincontent .reg-tooltiptext span.reg-hintMsg:after,
.logincontent .reg-tooltiptext span.reg-errorMsg:before,
.logincontent .reg-tooltiptext span.reg-errorMsg:after {
    content: "";
    position: absolute;
    border: 9px solid;
    top: 50%;
    transform: translate(0, -50%);
}

.logincontent .reg-tooltiptext span.reg-hintMsg:before,
.logincontent .reg-tooltiptext span.reg-errorMsg:before {
    content: none;
    border-color: transparent #CBCBCB transparent transparent;
    right: auto;
    left: -18px;
}

.logincontent .reg-tooltiptext span.reg-hintMsg:after,
.logincontent .reg-tooltiptext span.reg-errorMsg:after {
    border-color: transparent #F2F2F2 transparent transparent;
    right: auto;
    left: -16px;
}

/* --- 按鈕 --- */
.logincontent a.reg-btn {
    display: block;
    border-radius: 50px;
    text-align: center;
    padding: 10px;
    margin: 10px 0;
    letter-spacing: 2;
}

.logincontent a.reg-btn-cram {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: transparent linear-gradient(90deg, #03aff0 0%, #9438cc 100%) 0% 0% no-repeat padding-box;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    padding: 12px 65px;
    width: auto;
    margin: 1.5rem auto 1rem;
    max-width: 310px;
    /* max-width: 15rem; */
}

.logincontent a.reg-btn-cram:hover {
    -webkit-box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    box-shadow: 0px 3px 10px rgb(0, 0, 0, 0.22);
    color: #fff;
}

.logincontent a.reg-btn-outline {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #fff;
    border: 1px solid var(--twdiw-gray-border);
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    padding: 12px 65px;
    width: auto;
    margin: 0 auto 1rem;
    max-width: 310px;
    font-weight: 400;
}

.logincontent a.reg-btn-outline:hover {
    background: var(--twdiw-gray-light);
    color: #333;
}

/* --- waybox 社群登入 --- */
.logincontent .reg-waybox a.fb-login {
    background-color: #3b5999;
    border: #3b5999 solid 1px;
    font-size: 14px;
    color: #fff;
    font-weight: normal;
}

.logincontent .reg-waybox a.fb-login i {
    color: #3b5999;
}

.logincontent .reg-waybox a.gg-login {
    background-color: #ea4335;
    border: #ea4335 solid 1px;
    font-size: 14px;
    color: #fff;
    font-weight: normal;
}

.logincontent .reg-waybox a.btnborder {
    width: 32%;
    height: 45px;
    max-width: 260px;
    padding: 9px 5px;
    margin: 5px 0.625%;
    display: inline-block;
    background-color: #fff;
    border: #cbcbcb solid 1px;
    font-size: 16px;
    color: #505050;
    font-weight: normal;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
}

.logincontent .reg-waybox a:hover.btnborder {
    color: #000;
    background-color: #f8f8f8;
    -webkit-box-shadow: 0px 2px 5px rgb(0, 0, 0, 0.1);
    box-shadow: 0px 2px 5px rgb(0, 0, 0, 0.1);
}

@media screen and (max-width: 497px) {
    .logincontent .reg-waybox a.btnborder {
        display: block;
        width: auto;
        margin: 8px auto;
        max-width: 280px;
    }
}

.logincontent .reg-waybox a.btnborder img {
    width: 20px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.logincontent .reg-waybox a.btnborder i {
    margin-right: 0.25rem;
    border-radius: 50px;
    background-color: #fff;
    color: #ea4335;
    padding: 4px 5px 5px 5px;
    font-size: 13px;
    width: 20px;
    height: 20px;
}

.logincontent .reg-waybox a.btnborder > span {
    text-align: left;
    width: 4rem;
}

.logincontent .reg-waybox a.fb-login.btnborder i {
    background-color: #3b5999;
    color: #fff;
}

.logincontent .reg-waybox .btn i,
.logincontent .reg-waybox .btn span {
    vertical-align: middle;
}

/* --- linkway / register-guidance --- */
.logincontent .reg-linkway {
    text-align: center;
    font-size: 14px;
    color: #CBCBCB;
}

.logincontent .reg-register-guidance {
    padding-bottom: 4px;
    font-size: 14px;
    color: #505050;
}

.logincontent .reg-register-guidance a {
    color: #04AFF0;
    text-decoration: underline;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    padding-left: 1em;
}

.logincontent .reg-register-guidance a:hover {
    color: #0988CB;
}

.logincontent .reg-linkway a {
    font-family: "微軟正黑體", Arial, sans-serif !important;
    color: #04AFF0;
    text-decoration: underline;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    padding: 8px 10px;
    display: inline-block;
}

.logincontent .reg-linkway a:hover {
    color: #0988CB;
}

/* --- waybox 容器 --- */
.logincontent .reg-waybox {
    text-align: center;
    margin: 10px 0 10px;
    position: relative;
    font-size: 0;
}

.logincontent .reg-waybox .fakeline {
    height: 1px;
    width: 100%;
    background-color: #CBCBCB;
    position: absolute;
    top: 10px;
}

.logincontent .reg-waybox .waytext {
    position: relative;
    margin: auto;
    width: 100%;
    height: 1px;
    display: block;
    margin-bottom: 30px;
}

.logincontent .reg-waybox .waytext span {
    font-size: 14px;
    background: #fff;
    color: #505050;
    padding: 0 10px;
}

/* --- promptmessage / tipsText / 其他訊息 --- */
.logincontent .reg-promptmessage,
.logincontent .reg-errorexplain,
.logincontent .reg-redText,
.logincontent .reg-field-validation-error {
    text-align: center;
    color: #D60505;
    font-size: 14px;
}

.logincontent .reg-tipsText {
    text-align: center;
    color: #505050;
    font-size: 13px;
    margin-top: 10px;
}

.logincontent .reg-blueText {
    text-align: center;
    color: #000;
    font-size: 13px;
}

.logincontent .reg-promptmessageblue {
    color: #4c5d79;
    font-size: 15px;
    text-align: center;
    margin: 20px 0 10px;
}

.logincontent .reg-promptmessage,
.logincontent .reg-redText,
.logincontent .reg-normalText,
.logincontent .reg-blueText {
    margin-bottom: 5px;
}

/* --- inforroute 得知其他資訊 --- */
.logincontent .reg-inforroute {
    font-size: 13px;
    max-width: 370px;
    background: #f4fcfd;
    padding: 10px 8px;
}

.logincontent .reg-inforroute h4 {
    color: #4c5d79;
    text-align: center;
    padding-bottom: 2px;
    font-weight: bold;
}

.logincontent .reg-inforroute h4.mt5 {
    margin-top: 5px;
}

.logincontent .reg-inforroute span {
    position: relative;
}

.logincontent .reg-inforroute .chooseItem {
    display: inline-block;
    margin: 2px 2px 2px 0;
    line-height: 24px;
    border-radius: 3px;
    border: 1px solid #d7d7d7;
    text-align: center;
    background: #FFF;
    cursor: pointer;
}

.logincontent .reg-inforroute .chooseItem a {
    color: #313131;
}

.logincontent .reg-inforroute .chooseItem.active {
    background: #88a3be;
    color: #FFF;
    border: 1px solid #88a3be;
}

.logincontent .reg-inforroute .chooseItem input[type="checkbox"] {
    display: none;
}

.logincontent .reg-inforroute .chooseItem input[type="checkbox"] + label {
    display: inline-block;
    cursor: pointer;
    line-height: 24px;
    padding: 0 14px;
    border-radius: 3px;
}

.logincontent .reg-inforroute input[type="text"] {
    border: 1px solid #d7d7d7;
    font-size: 13px;
    height: 25px;
    line-height: 25px;
    border-radius: 3px;
    padding: 0 3px;
}

.logincontent .reg-inforroute .chooseItem input[type="checkbox"]:checked + label {
    background: #88a3be;
    color: #FFF;
}

/* --- iagreebox 服務條款同意 --- */
.logincontent .reg-iagreebox {
    font-size: 13px;
    max-width: 370px;
    margin: 15px 0;
    display: flex;
}

.logincontent .reg-iagreebox a {
    color: #4983DB;
}

.logincontent .reg-iagreebox [type="checkbox"]:not(:checked),
.logincontent .reg-iagreebox [type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

.logincontent .reg-iagreebox [type="checkbox"]:not(:checked) + label,
.logincontent .reg-iagreebox [type="checkbox"]:checked + label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

.logincontent .reg-iagreebox [type="checkbox"]:not(:checked) + label:before,
.logincontent .reg-iagreebox [type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d7d7d7;
    background: #f8f8f8;
    border-radius: 2px;
}

.logincontent .reg-iagreebox [type="checkbox"]:not(:checked) + label:after,
.logincontent .reg-iagreebox [type="checkbox"]:checked + label:after {
    content: '✔';
    position: absolute;
    top: -4px;
    left: 2px;
    font-size: 24px;
    color: #4983DB;
    transition: all .2s;
}

.logincontent .reg-iagreebox [type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}

.logincontent .reg-iagreebox [type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

.logincontent .reg-iagreebox p {
    line-height: 14px;
}

/* ============================================================
   階段一 批次 3：Media Query + 進階元件（從 loginNewPageStyle.css 遷移）
   原始行號 1765~1807（tooltiptext mobile）, 1849~1859（320px inputSty）,
   1861~1869（select_item 補充）, 1887~2090（form-group-area + verify-help）
   ============================================================ */

/* --- tooltiptext mobile 覆寫 (767px) --- */
@media screen and (max-width: 767px) {
    .logincontent .reg-tooltiptext {
        top: 0;
    }

    .logincontent .reg-tooltiptext span {
        width: 100%;
        height: auto;
        display: block;
        position: static;
        padding: 5px 10px;
        box-shadow: none;
        transform: none;
    }

    .logincontent .reg-tooltiptext span.reg-hintMsg {
        background: #F2F2F2;
        border: 3px solid #F2F2F2;
        margin-top: 0.3rem;
    }

    .logincontent .reg-tooltiptext span.reg-hintMsg::after,
    .logincontent .reg-tooltiptext span.reg-errorMsg::after {
        border: none;
    }

    .logincontent .reg-tooltiptext span.reg-errorMsg.pair02 {
        float: left;
        margin-top: 0.3rem;
    }

    .logincontent .reg-tooltiptext span.reg-errorMsg.pair02 p {
        position: static;
        top: auto;
    }

    .logincontent .reg-tooltiptext span p {
        vertical-align: middle;
    }

    .reg-tablebar .reg-inputSty button {
        font-size: 13px;
    }

    .reg-tablebar li {
        margin-bottom: 0.5rem;
    }
}

/* --- 320px 極小螢幕 --- */
@media screen and (max-width: 320px) {
    .reg-tablebar .reg-inputSty button#sendValid {
        position: static;
        width: 100%;
        transform: translateY(0);
        margin-top: 5px;
    }

    .reg-tablebar .reg-inputSty span.mobile {
        top: 25%;
    }
}

/* --- select_item 補充規則 --- */
.reg-tablebar .reg-select-item option:disabled {
    background-color: #ccc;
    font-weight: bold;
}

.reg-tablebar .reg-select-item.year.simple select {
    font-size: 1rem;
    margin-left: -2px;
}

/* --- form-group-area → reg-form-group-area（推薦 TAG） --- */
.reg-form-group-area {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    padding-bottom: 11px;
    padding-top: 5px;
}

.reg-form-group-area .form-control-group {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.reg-form-group-area .form-control-group.btnGroup {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
}

@media (max-width: 768px) {
    .reg-form-group-area .form-control-group.btnGroup {
        gap: 8px;
    }
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span {
    width: fit-content;
    max-width: 100%;
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #00B2B2;
    border: 1px solid #2BD9D9;
    background-color: #fff;
    border-radius: 8px;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span:hover {
    background-color: #C7F2EF;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span:focus {
    background-color: #C7F2EF;
    box-shadow: 0 0 0 4px rgba(43, 217, 217, 0.12);
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span:active {
    color: #03A1A1;
    background-color: #C7F2EF;
    box-shadow: none;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span.disabled,
.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn span:disabled {
    opacity: .5;
    pointer-events: none;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn input.disabled,
.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn input:disabled span {
    opacity: .5;
    pointer-events: none;
}

.reg-form-group-area .form-control-group.btnGroup.btnGroupRecommend .input-btn input:checked ~ span {
    color: #03A1A1;
    background-color: #C7F2EF;
    border: 1px solid #2BD9D9;
    box-shadow: none;
}

.reg-form-group-area .form-control-group input {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: #212529;
    border: 1px solid #CED4DA;
    background-color: #fff;
}

@media (max-width: 768px) {
    .reg-form-group-area .form-control-group input {
        font-size: 15px;
    }
}

.reg-form-group-area .form-control-group input::placeholder {
    color: #ADB5BD;
}

.reg-form-group-area .form-control-group input:disabled,
.reg-form-group-area .form-control-group input.disabled {
    color: #939DA7;
    border: 1px solid #E9ECEF;
    background-color: #F8F9FA;
    pointer-events: none;
}

.reg-form-group-area .form-control-group input {
    padding: 7px 12px;
}

.reg-form-group-area .form-control-group .input-btn {
    box-sizing: border-box;
    margin-bottom: 0;
}

.reg-form-group-area .form-control-group .input-btn input[type="radio"],
.reg-form-group-area .form-control-group .input-btn input[type="checkbox"] {
    display: none;
}

.reg-form-group-area .form-control-group .input-btn input[type="radio"].disabled ~ span,
.reg-form-group-area .form-control-group .input-btn input[type="checkbox"].disabled ~ span,
.reg-form-group-area .form-control-group .input-btn input[type="radio"]:disabled ~ span,
.reg-form-group-area .form-control-group .input-btn input[type="checkbox"]:disabled ~ span {
    color: #939DA7;
    border: 1px solid #E9ECEF;
    background-color: #F8F9FA;
    pointer-events: none;
    cursor: auto;
}

.reg-form-group-area .form-control-group .input-btn span {
    display: block;
    padding: 8px 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    word-break: keep-all;
    color: #212529;
    border: 1px solid #CED4DA;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .reg-form-group-area .form-control-group .input-btn span {
        padding: 8px 14px;
    }
}

/* --- login-verify-help-wrapper → reg-login-verify-help-wrapper（驗證提示） --- */
.reg-login-verify-help-wrapper {
    display: flex;
    width: 304px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px auto;
}

.reg-login-verify-help-text {
    color: #636E78;
    text-align: center;
    font-family: "Noto Sans TC", "微軟正黑體", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
}

.reg-login-verify-help-link {
    color: #2066EC;
    text-align: center;
    font-family: "Noto Sans TC", "微軟正黑體", Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 170%;
    text-decoration: none;
}

.reg-login-verify-help-link:hover {
    color: #1557d0;
    text-decoration: underline;
}

/* ============================================================
   階段一：Float → Flex 修正
   原因：loginNewPageStyle.css line 211 `.logincontent { float: left }`
   導致 `.loginbottom { clear: both }` 依賴浮動清除，
   display:none 切換時造成佈局塌陷。
   修正：覆寫為 flex，消除 float 依賴。
   ============================================================ */
.Loginitem .logincontent {
    float: none !important;
    display: flex;
    flex-direction: column;
}

/* step2 提示文字 */
.reg-step-hint {
    font-size: 14px;
    color: #757475;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* step2 姓名欄位標題與說明 */
.twdiw-name-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.twdiw-name-label .required {
    color: #EA4335;
}

/* step2 欄位驗證錯誤 */
.reg-inputSty.has-error input {
    border-color: #ff0000;
}

.error-msg {
    display: none;
    /* background: #F2F2F2; */
    color: #D60505;
    font-size: 12px;
    border-radius: 6px;
    padding: 3px 0;
    margin-top: 4px;
    line-height: 1.5;
}

.error-msg.show {
    display: block;
}

.twdiw-name-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

/* 底部安全提示（取代 .loginbottom，移除 clear:both 浮動依賴） */
.registered-bottom {
    background: #f1f1f1;
    color: #000;
    font-size: 12px;
    line-height: 1.3;
    padding: 15px 5px;
    text-align: center;
    border-radius: 6px;
    background-color: #f8f8f8;
    font-family: "微軟正黑體", Arial, sans-serif !important;
    -webkit-text-size-adjust: none;
}

/* ============================================================
   階段五：共用結果卡片 + Modal
   .reg-result     → 結果卡片（icon + 標題 + 說明 + 按鈕），
                      全頁(step2-2-2/step2-2-3)和 modal 都用
   .reg-modal      → Modal 容器（step3-1 ~ step3-5 蓋在 step3 上）
   ============================================================ */

/* --- 共用結果卡片 --- */
.reg-result {
    padding: 40px 20px;
    text-align: center;
}

.reg-result-icon {
    width: 142px;
    height: 142px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 56px;
}

.reg-result-icon.success {
    background: var(--twdiw-success-bg);
    color: var(--twdiw-success);
}

.reg-result-icon.fail {
    background: var(--twdiw-fail-bg);
    color: var(--twdiw-fail);
}

.reg-result-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.reg-result-desc {
    font-size: 13px;
    color: var(--twdiw-gray-text);
    line-height: 1.5;
    margin-bottom: 8px;
}

.reg-result-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}

.reg-result-actions .twdiw-btn {
    max-width: 320px;
}

/* --- Modal 容器 --- */
.reg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.reg-modal.show {
    display: flex;
}

.reg-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.reg-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    z-index: 1;
}

/* Modal 內的結果卡片較小 */
.reg-modal-content .reg-result {
    padding: 0;
}

.reg-modal-content .reg-result-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
}

@media (max-width: 768px) {
    .reg-modal-content {
        width: 95%;
        padding: 20px 16px;
    }
}

/* ============================================================
   功能二：以數位憑證皮夾帶入資料彈窗（設計稿 RegisterFormAuthQR）
   ============================================================ */
.twdiw-modal.twdiw-modal--wide {
    max-width: 680px;
    padding: 32px clamp(20px, 5vw, 40px) 36px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.twdiw-degree-auth {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    color: #333;
}

.twdiw-degree-auth.twdiw-hidden {
    display: none;
}

.twdiw-degree-auth .degree-auth-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.twdiw-degree-auth .degree-auth-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.twdiw-degree-auth .degree-auth-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.twdiw-degree-auth .degree-auth-sub {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.twdiw-degree-auth .degree-auth-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: -8px -12px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.twdiw-degree-auth .degree-auth-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px 36px;
}

.twdiw-degree-auth .degree-auth-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.twdiw-degree-auth .qr-box {
    position: relative;
    width: 216px;
    height: 216px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    background: #fff;
}

.twdiw-degree-auth .qr-box img {
    display: block;
    width: 194px;
    height: 194px;
}

.twdiw-degree-auth .qr-box.expired img {
    opacity: 0.3;
}

.twdiw-degree-auth .qr-box.expired::after {
    content: 'QR Code 已逾期';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.twdiw-degree-auth .degree-auth-countdown {
    font-size: 14px;
    color: #555;
}

.twdiw-degree-auth .degree-auth-countdown .countdown-time {
    color: #c0392b;
}

.twdiw-degree-auth .degree-auth-link {
    font-size: 14px;
    color: #1f7fc4;
    text-decoration: underline;
}

.twdiw-degree-auth #twdiw-degree-qr-error {
    max-width: 216px;
    text-align: center;
}

.twdiw-degree-auth .degree-auth-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.twdiw-degree-auth .degree-auth-app img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.twdiw-degree-auth .degree-auth-open {
    width: 100%;
    max-width: 300px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #3ba3e3, #8a3fc6);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.twdiw-degree-auth .degree-auth-app-hint {
    font-size: 13px;
    color: #666;
}

.twdiw-degree-auth .degree-provide {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1 1 260px;
    min-width: 0;
}

.twdiw-degree-auth .degree-provide .provide-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.twdiw-degree-auth .degree-provide .provide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.twdiw-degree-auth .degree-provide .provide-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.twdiw-degree-auth .degree-provide .provide-list svg {
    flex-shrink: 0;
}

.twdiw-degree-auth .degree-provide .provide-note {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

.twdiw-degree-auth .degree-auth-cancel {
    align-self: center;
    font-size: 15px;
    color: #555;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .twdiw-degree-auth .degree-auth-title {
        font-size: 24px;
    }
}
