.lyuimember_left_pic_001 {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #222;
    /* background-image: url('/module/ly-web/member/forget/images/login-bg.jpg'); */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    color: #fff;
}

.lyuimember_left_pic_001::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%); z-index: 1;}
.lyuimember_left_pic_001-content { position: relative; z-index: 2;}
.lyuimember_left_pic_001-logo-link img { height: 72px; filter: brightness(0) invert(1);}
.lyuimember_left_pic_001-text { position: relative; z-index: 2; margin-bottom: 40px;}
.lyuimember_left_pic_001-text h2 { font-family: var(--font-serif); font-size: 60px; font-weight: 700; letter-spacing: 5px; margin-bottom: 20px; line-height: 1.3;}
.lyuimember_left_pic_001-text p { font-size: 18px; font-weight: 300; opacity: 0.8; letter-spacing: 2px; line-height: 1.8;}
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    max-width: 100%;
}

.auth-left-pic {
    flex: 0 0 960px;
    min-height: 100%;
}


/* 右側：表單交互區 */
.auth-form-area {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    min-width: 500px;
}

/* 右上角關閉按鈕 (改為 fixed 絕對鎖定視口右上角)*/
.btn-close-page {
    position: fixed;
    /* 關鍵修改：強制鎖定在瀏覽器右上角 */
    top: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeebe6;
    color: var(--text-main);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 999;
    /* 提高層級確保不被遮擋 */
}

.btn-close-page:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}

.btn-close-page svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* 鎖定表單內容區寬度為 650px */
.form-container {
    width: 100%;
    max-width: 650px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.form-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 標題字號 48px */
.auth-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.auth-subtitle a {
    color: var(--accent);
    font-weight: 600;
    margin-left: 5px;
    position: relative;
}

.auth-subtitle a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: 0.3s;
    transform-origin: right;
}

.auth-subtitle a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.auth-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 多渠道登入組件*/
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.btn-social {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
}

/* 交互時線框改為 VI 色 */
.btn-social:hover {
    border-color: var(--accent);
    background: #faf9f6;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #bbb;
    font-size: 16px;
    margin-bottom: 35px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider span {
    padding: 0 15px;
}

/* 表單輸入組件*/
.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab-btn {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-gray);
    padding-bottom: 15px;
    position: relative;
    transition: 0.3s;
}

.auth-tab-btn:nth-child(2) {
    margin-left: 20px;
}

.auth-tab-btn.active {
    color: var(--text-main);
    font-weight: 600;
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transform: scaleX(0);
    transition: 0.3s;
}

.auth-tab-btn.active::after {
    transform: scaleX(1);
}

.input-group {
    margin-bottom: 30px;
    position: relative;
}

.input-group.sms-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-input {
    width: 100%;
    height: 49px;
    /* 鎖定固定高度 49px 消除跳動感 */
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-main);
    font-family: var(--font-sans);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    outline: none;
    transition: 0.3s;
}

.form-input::placeholder {
    color: #ccc;
    font-weight: 300;
}

.form-input:focus {
    border-bottom-color: var(--accent);
}

input[type="email"],
input[type="tel"],
input[type="password"] {
    font-family: var(--font-num);
    font-weight: 500;
}

/* 獲取驗證碼按鈕：高度 48px，寬度 150px */
.btn-get-code {
    width: 150px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-main);
    font-size: 16px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1px;
    /* 對齊底線 */
}

.btn-get-code:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-gray);
}

.checkbox-label input {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    color: var(--text-gray);
    transition: 0.3s;
}

.forgot-link:hover {
    color: var(--accent);
}

/* 登入主操作按鈕：字體 20px */
.btn-submit {
    margin-top: 20px;
    width: 100%;
    height: 55px;
    background: var(--text-main);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    margin-bottom: 25px;
}

.btn-submit:hover {
    background: var(--accent);
}

.guest-checkout {
    text-align: center;
}

.btn-guest {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: 0.3s;
}

.btn-guest:hover {
    border-bottom-color: var(--accent);
    gap: 12px;
}

.btn-guest svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* 自訂生日日曆面板 (徹底取代原生系統 UI)*/
.form-input[type="text"][readonly] {
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-num);
}

.input-hint {
    font-size: 16px;
    color: var(--accent);
    margin-top: 10px;
    display: block;
    line-height: 1.5;
}

.calendar-icon {
    position: absolute;
    right: 0;
    top: 12px;
    width: 22px;
    height: 22px;
    stroke: var(--text-gray);
    fill: none;
    stroke-width: 1.5;
    cursor: pointer;
    transition: 0.3s;
}

.input-group:hover .calendar-icon {
    stroke: var(--accent);
}

.custom-datepicker {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-datepicker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 新增：自订年份与月份下拉選單 */
.dp-selectors {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 105;
}

.custom-select {
    position: relative;
}

.select-trigger {
    font-family: var(--font-num);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.select-trigger:hover {
    color: var(--accent);
}

.select-trigger svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    transition: 0.3s;
}

.custom-select.active .select-trigger svg {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    text-align: center;
}

.custom-select.active .select-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.select-option {
    padding: 10px 0;
    font-family: var(--font-num);
    font-size: 15px;
    color: var(--text-main);
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px dashed var(--border-light);
}

.select-option:last-child {
    border-bottom: none;
}

.select-option:hover {
    color: var(--accent);
    background: #faf9f6;
}

.select-option.selected {
    background: var(--accent);
    color: #fff;
    border-bottom-color: transparent;
}

/* 雅致的自訂滾動條 */
.select-dropdown::-webkit-scrollbar {
    width: 4px;
}

.select-dropdown::-webkit-scrollbar-thumb {
    background: #ddd;
}

.select-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.dp-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    background: #fff;
    transition: 0.3s;
}

.dp-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dp-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.dp-day-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.dp-date {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}

.dp-date:hover:not(.empty) {
    border-color: var(--accent);
    color: var(--accent);
}

.dp-date.empty {
    cursor: default;
}

/* RWD 響應式*/
@media (max-width: 1600px) {
    .auth-banner {
        flex: 0 0 800px;
    }
}

@media (max-width: 1200px) {
    .auth-banner {
        flex: 1;
    }

    .banner-text h2 {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-banner {
        flex: none;
        height: 350px;
        padding: 40px;
    }

    .auth-form-area {
        flex: 1;
        min-width: 100%;
        padding: 50px 8vw;
    }

    /* 手機端按鈕微調 */
    .btn-close-page {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .social-login {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .auth-title {
        font-size: 36px;
    }

    .banner-text h2 {
        font-size: 36px;
    }

    .input-group.sms-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-get-code {
        width: 100%;
    }
}