/* 會員登錄 / 會員註冊 — 與 mybill、開臺(opentable) 統一 */

.member-auth-page .auth-shell {
    max-width: 400px;
    margin: 0 auto;
    padding: 28px 14px 36px;
    box-sizing: border-box;
}

.member-auth-page .auth-banner {
    text-align: center;
    margin-bottom: 18px;
}

.member-auth-page .auth-banner img {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid #eef0f4;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    background: #fff;
}

.member-auth-page .auth-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    padding: 22px 20px 20px;
    box-sizing: border-box;
}

.member-auth-page .auth-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    text-align: center;
    letter-spacing: 0.02em;
}

.member-auth-page .auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 20px;
    text-align: center;
    line-height: 1.5;
}

.member-auth-page .auth-field {
    margin-bottom: 14px;
}

.member-auth-page .auth-input {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.member-auth-page .auth-input:focus {
    border-color: #10b981;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.member-auth-page .auth-input::placeholder {
    color: #9ca3af;
}

.member-auth-page .auth-actions {
    margin-top: 8px;
}

.member-auth-page .auth-btn-primary {
    width: 100%;
    appearance: none;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.35);
    transition: filter 0.2s, transform 0.12s;
}

.member-auth-page .auth-btn-primary:hover {
    filter: brightness(1.05);
}

.member-auth-page .auth-btn-primary:active {
    transform: scale(0.99);
}

.member-auth-page .auth-extra {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}

.member-auth-page .auth-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #059669;
    text-decoration: none;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    background: #ecfdf5;
    transition: background 0.2s, border-color 0.2s, transform 0.12s;
}

.member-auth-page .auth-link-secondary:hover {
    background: #d1fae5;
    border-color: #a7f3d0;
    text-decoration: none;
}

.member-auth-page .auth-link-secondary:active {
    transform: scale(0.99);
}

.member-auth-page #json {
    min-height: 0;
}

/* 會員協議勾選與全文彈層 */
.member-auth-page .auth-agreement {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 8px;
    margin-bottom: 4px;
    padding: 12px 0 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.member-auth-page .auth-agreement-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.member-auth-page .auth-agreement-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #059669;
    cursor: pointer;
}

.member-auth-page .auth-agreement-linkbtn {
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.member-auth-page .auth-agreement-linkbtn:hover {
    color: #047857;
}

.member-auth-page .membreg-agreement-scroll {
    max-height: min(70vh, 520px);
}

.member-auth-page .membreg-agreement-pre {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #374151;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

/* 蜜罐欄位：對可視用戶隱藏，自動填表機器人常會填寫 */
.member-auth-page .memb-hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
