/* ---- 登入 / 註冊雙面板滑動切換（移植自 Z_ETAsst，配色＝全站 dark brutalist mono）----
   兩頁（/Account/Login、/Account/Register）都渲染完整的兩個面板，
   差別只在初始有沒有 .right-panel-active，切換靠 CSS transform，不重新載入頁面。 */

.auth-wrapper {
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 24px 16px;
    box-sizing: border-box;
}

.auth-container {
    background: #0a0a0a;
    border-radius: 16px;
    border: 2px solid #fff;
    box-shadow: 8px 8px 0 #fff;
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 580px;
}

.auth-container .form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-container .sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.auth-container .sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: auth-show 0.6s;
}

@keyframes auth-show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

.auth-form {
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 46px;
    height: 100%;
    text-align: center;
    overflow-y: auto;
}

/* 帳密表單獨立成 flex 容器，欄位才會撐滿面板寬度 */
.auth-form .auth-inner-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.auth-form h1 {
    font-weight: 800;
    margin: 0 0 10px;
    font-size: 26px;
    color: #fff;
}

.auth-form .brand-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    filter: invert(1);   /* 黑線稿疊深色卡片要反白 */
}

.auth-form .brand {
    color: #aaa;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.auth-form .hint {
    font-size: 12px;
    color: #aaa;
    margin: 4px 0 8px;
}

.auth-form .auth-input {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 13px 18px;
    margin: 6px 0;
    width: 100%;
    border-radius: 999px;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    display: block;
}

.auth-form .auth-input:focus {
    background: #000;
    border-color: #fff;
    box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff;
}

/* 密碼欄位 + 眼睛切換 */
.pw-field {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 6px 0;
    align-self: stretch;
}

.pw-field .auth-input {
    padding-right: 46px;
    margin: 0;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #888;
    line-height: 0;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    z-index: 5;
}

.pw-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.pw-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.pw-toggle .icon-hide { display: none; }
.pw-toggle.is-visible .icon-show { display: none; }
.pw-toggle.is-visible .icon-hide { display: inline; }

.auth-form .remember-row {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 10px;
}

.auth-form .remember-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

.auth-form .error-banner {
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 10px;
    width: 100%;
    text-align: left;
}

.auth-form .error-banner ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.btn-primary-pill {
    border-radius: 999px;
    border: 2px solid #fff;
    background: #fff;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease-in, box-shadow 0.2s, background 0.2s;
    margin-top: 8px;
}

.btn-primary-pill:hover {
    background: #000;
    color: #fff;
}

.btn-primary-pill:active {
    transform: scale(0.97);
}

.btn-ghost-pill {
    border-radius: 999px;
    border: 2px solid #000;
    background: transparent;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.08s ease-in, background 0.2s;
}

.btn-ghost-pill:hover {
    background: #000;
    color: #fff;
}

.btn-ghost-pill:active {
    transform: scale(0.97);
}

/* ---- Overlay（白色滑動面板：深色本體上反白，才區隔得開）---- */

.auth-container .overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.auth-container .overlay {
    background: #fff;
    color: #000;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

/* 內側的圓弧光暈 */
.auth-container .overlay::before,
.auth-container .overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-container .overlay::before { left: -20%; }
.auth-container .overlay::after { right: -20%; }

.auth-container .overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container .overlay-panel h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.overlay-panel .overlay-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;   /* overlay 是白底，黑線稿圖示直接用不用反白 */
}

.overlay-panel .overlay-desc {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
    max-width: 320px;
    opacity: 0.92;
}

.overlay-panel .overlay-features {
    font-size: 13px;
    line-height: 1.9;
    margin: 8px 0 18px;
    text-align: left;
    max-width: 280px;
    opacity: 0.9;
}

.auth-container .overlay-left {
    transform: translateX(-20%);
    left: 0;
}

.auth-container .overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* ---- 手機：overlay 收起來，改用文字連結切換，面板上下滑 ---- */

@media (max-width: 768px) {
    .auth-wrapper { padding: 0; }
    .auth-container { min-height: 100vh; border-radius: 0; }
    .auth-form { padding: 32px 24px; }

    .auth-container .form-container { width: 100%; }

    .auth-container .sign-up-container {
        top: 100%;
        opacity: 1;
        transition: transform 0.5s;
    }
    .auth-container.right-panel-active .sign-up-container {
        transform: translateY(-100%);
        animation: none;
    }
    .auth-container.right-panel-active .sign-in-container {
        transform: translateY(-100%);
    }
    .auth-container .overlay-container { display: none; }

    .mobile-toggle-row {
        display: block !important;
        width: 100%;
        margin-top: 14px;
        font-size: 13px;
        color: #aaa;
    }
    .mobile-toggle-row a {
        color: #fff;
        font-weight: 600;
    }
}

.mobile-toggle-row { display: none; }

/* ---- 註冊送出後的成功卡（不走雙面板）---- */

.auth-simple-card {
    background: #0a0a0a;
    border-radius: 16px;
    border: 2px solid #fff;
    box-shadow: 8px 8px 0 #fff;
    padding: 48px 44px;
    max-width: 460px;
    text-align: center;
}

.auth-simple-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 12px 0;
}

.auth-simple-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.auth-simple-card .brand-icon {
    width: 56px;
    height: 56px;
    filter: invert(1);
}

.auth-simple-card .btn-primary-pill {
    display: inline-block;
    text-decoration: none;
    margin-top: 16px;
}
