/* ── Login Page 專屬樣式（lp- 前綴，不影響其他頁面）── */
:root {
    --lp-ink: #1f1a00;
    --lp-org1: #fd9a1e;
    --lp-org2: #ffd45a;
    --lp-teal1: #008a99;
    --lp-teal2: #0fc4d6;
    --lp-new: #d6336c;
}

/* 使用與 style.css 相同的字型名稱 Nst */
body {
    font-family: "Nst", "MicrosoftJhengHei", sans-serif;
}

:focus-visible {
    outline: 3px solid #0b5fff;
    outline-offset: 3px;
}

.lp-page {
    min-height: 100vh;
    color: var(--lp-ink);
    background:
        radial-gradient(120% 80% at 100% 0%, #c9e07a 0%, transparent 55%),
        linear-gradient(160deg, #ffd447 0%, #f3e04a 35%, #7fe0a2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 16px 48px;
}

.lp-logo { text-align: center; }
.lp-logo img { width: 150px; height: 150px; }
.lp-title { font-size: 24px; margin: 32px 0 28px; font-weight: 700; }

.lp-grid {
    width: 100%;
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
    position: relative;
}

.lp-card {
    grid-column: span 2;
    border-radius: 28px;
    padding: 30px 22px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    border: 3px solid rgba(255, 255, 255, .55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.lp-card.donor {
    grid-column: span 3;
    max-width: 280px;
    width: 100%;
    justify-self: center;
    background: linear-gradient(180deg, var(--lp-org1), var(--lp-org2));
}

.lp-card.donor:nth-child(2) { justify-self: end; }
.lp-card.donor:nth-child(3) { justify-self: start; }

.lp-card.role {
    background: linear-gradient(180deg, var(--lp-teal1), var(--lp-teal2));
    color: #fff;
}

.lp-card svg.lp-ic,
.lp-card img.lp-ic { width: 70px; height: 70px; opacity: .9; flex-shrink: 0; }

.lp-card h2 {
    margin: 20px 0 40px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-card.host h2 { font-size: 22px; margin: 8px 0 24px; }

.lp-btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    padding: 12px 10px;
    border-radius: 99px;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.05));
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.donor .lp-btn {
    background: linear-gradient(180deg, #ffb23a, #ffd45a);
    border-color: #fff2c2;
}

.lp-btn:hover { filter: brightness(1.08); text-decoration: none; color: inherit; }

/* 職業或業餘主辦單位卡 */
.lp-card.host { position: relative; padding-top: 38px; }
.lp-stack { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.lp-btn.lp-btn-new {
    background: #fff;
    color: #b0114a;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    flex-direction: column;
    gap: 2px;
    padding: 11px 14px;
    box-shadow: 0 0 0 3px #ffe066, 0 4px 12px rgba(0,0,0,.3);
}

.lp-btn.lp-btn-new:hover { color: #b0114a; }

.lp-btn.lp-btn-new .lp-sub {
    font-size: .85rem;
    font-weight: 600;
    color: #b0114a;
}

.lp-btn-note {
    font-size: .75rem;
    font-weight: 400;
    color: #888;
    width: 100%;
    text-align: center;
    border-top: 1px dashed #ccc;
    padding-top: 6px;
    margin-top: 4px;
}

.lp-btn.lp-btn-old {
    flex-direction: column;
    gap: 2px;
    font-size: 1rem;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
}

.lp-btn.lp-btn-old .lp-sub { font-size: .85rem; font-weight: 600; opacity: .9; }

.lp-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lp-new);
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.lp-ext { width: 14px; height: 14px; flex: none; }

.lp-reg { margin-top: 26px; font-size: .95rem; }
.lp-reg a { color: #1a3cff; }

/* 轉址確認 Dialog */
.lp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: none;
    place-items: center;
    padding: 16px;
    z-index: 1055;
}

.lp-overlay.show { display: grid; }

.lp-dialog {
    background: #fff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 24px;
}

.lp-dialog h3 { margin: 0 0 10px; font-size: 1.2rem; }
.lp-dialog p { margin: 0 0 6px; line-height: 1.6; }

.lp-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
    flex-wrap: wrap;
}

.lp-row button {
    font: inherit;
    font-weight: 600;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    cursor: pointer;
}

.lp-cancel-btn { background: #eee; }
.lp-go-btn { background: var(--lp-new); color: #fff; }

@media (max-width: 760px) {
    .lp-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .lp-card, .lp-card.donor {
        grid-column: span 1;
        max-width: none;
        justify-self: stretch !important;
    }
    .lp-card.host { grid-column: 1 / -1; }
}

@media (max-width: 440px) {
    .lp-grid { grid-template-columns: 1fr; }
    .lp-card { grid-column: 1 / -1; }
}
