/* 登入頁專屬版面：桌機雙欄，手機自動堆疊 */
.login-page .inner {
    display: block;
    width: calc(100% - 32px);
    max-width: 920px;
    margin: 0 auto;
    padding: 4vh 0 12vh;
}

.login-page .inner .form {
    box-sizing: border-box;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.login-page .inner .form .title {
    margin-bottom: 22px;
}

.login-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .95fr);
    gap: 28px;
    align-items: start;
    text-align: left;
}

.login-panel {
    min-width: 0;
}

.login-panel--social {
    padding-left: 28px;
    border-left: 1px solid #e5e5e5;
}

.login-panel-title {
    margin: 0 0 14px;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
}

.login-page .inner .form .list:first-of-type {
    padding-top: 0;
}

.login-page .inner .switch {
    border-radius: 0 0 12px 12px;
}

.social-login-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.social-login-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid #bbb;
    border-radius: 8px;
    background-color: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    outline: 2px solid transparent;
    transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.social-login-btns a:hover {
    border-color: #888;
    background-color: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.social-login-btns a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.social-login-btns a img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ── Passkey 按鈕（與社群登入連結共用基礎樣式，另加漸層邊框突出顯示）── */
.passkey-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: #fff;
    background-clip: padding-box;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px #6c3fff33;
    transition: background-color .2s, box-shadow .2s;
    position: relative;
}
/* 漸層邊框（偽元素模擬，相容性好）*/
.passkey-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, #6c3fff, #00c6ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.passkey-btn:hover {
    background-color: #f0eeff;
    box-shadow: 0 1px 6px rgba(108, 63, 255, .25);
}
.passkey-btn:focus-visible {
    outline: 2px solid #6c3fff;
    outline-offset: 2px;
}
.passkey-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.passkey-btn .passkey-icon {
    width: 22px;
    height: 22px;
    fill: #6c3fff;
    flex-shrink: 0;
}

/* Facebook「使用 Facebook 繼續」— 已登入狀態深色按鈕 */
.social-login-btns .fb-continue-btn {
    position: relative;
    gap: 12px;
    padding: 10px 16px;
    border-color: #333;
    background-color: #333;
    color: #fff;
}

.social-login-btns .fb-continue-btn:hover {
    border-color: #555;
    background-color: #444;
}

.fb-continue-btn .fb-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.fb-continue-btn .fb-avatar-wrap img.fb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-continue-btn .fb-avatar-wrap .fb-badge {
    position: absolute;
    right: -4px;
    bottom: -2px;
    display: flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1877f2;
}

.fb-continue-btn .fb-avatar-wrap .fb-badge svg {
    width: 10px;
    height: 10px;
    fill: #fff;
}

.fb-continue-btn .fb-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.3;
}

.fb-continue-btn .fb-text-wrap .fb-label {
    font-size: 14px;
    font-weight: 600;
}

.fb-continue-btn .fb-text-wrap .fb-name {
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
}

@media (max-width: 767px) {
    .login-page .inner {
        width: 92%;
        max-width: 420px;
        padding-top: 24px;
    }

    .login-page .inner .form {
        padding: 18px 14px;
    }

    .login-page .inner .form .title {
        margin-bottom: 16px;
    }

    .login-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .login-panel--social {
        padding-top: 22px;
        padding-left: 0;
        border-top: 1px solid #e5e5e5;
        border-left: 0;
    }

    .login-panel-title {
        text-align: center;
    }
}

@media (max-width: 360px) {
    .login-page .inner {
        width: calc(100% - 20px);
    }

    .social-login-btns a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }
}

@media (forced-colors: active) {
    .social-login-btns a {
        border: 2px solid ButtonBorder;
        background: Canvas;
        color: ButtonText;
    }
}