/* 基础重置样式 */
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', sans-serif, Helvetica, Arial, 'Microsoft JhengHei', sans-serif;
    background-color: #fff;
    font-size: 15px;
    color: #4a4a4a;
    letter-spacing: 1px;
}

/* Tailwind CSS 必要的工具类 */
.pointer-events-none {
    pointer-events: none;
}
.absolute {
    position: absolute;
}
.relative {
    position: relative;
}
.inset-y-0 {
    top: 0px;
    bottom: 0px;
}
.left-0 {
    left: 0px;
}
.mx-1 {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-\[10px\] {
    margin-bottom: 10px;
}
.mt-4 {
    margin-top: 1rem;
}
.flex {
    display: flex;
}
.h-7 {
    height: 1.75rem;
}
.w-7 {
    width: 1.75rem;
}
.w-\[100px\] {
    width: 100px;
}
.w-full {
    width: 100%;
}
.flex-wrap {
    flex-wrap: wrap;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.rounded-\[10px\] {
    border-radius: 10px;
}
.bg-white {
    background-color: rgb(255 255 255);
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-\[8px\] {
    padding-top: 8px;
    padding-bottom: 8px;
}
.pb-0\.5 {
    padding-bottom: 0.125rem;
}
.pl-16 {
    padding-left: 4rem;
}
.pl-4 {
    padding-left: 1rem;
}
.pr-3 {
    padding-right: 0.75rem;
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}
.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
.font-semibold {
    font-weight: 600;
}
.text-black {
    color: rgb(0 0 0);
}

/* 响应式样式 */
@media (min-width: 768px) {
    .md\:my-4 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:mb-5 {
        margin-bottom: 1.25rem;
    }
    .lg\:mb-\[20px\] {
        margin-bottom: 20px;
    }
    .lg\:w-\[200px\] {
        width: 200px;
    }
    .lg\:w-\[600px\] {
        width: 600px;
    }
    .lg\:rounded-\[25px\] {
        border-radius: 25px;
    }
    .lg\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .lg\:py-\[15px\] {
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .lg\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

/* 登录页面专用样式 */
.login-bg {
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 50%, #0d47a1 100%);
    height: 100vh;
    width: 100vw;
    padding: 0;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
}

.bg-block-b {
    z-index: 1;
    top: 0;
    left: 0;
    position: fixed;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    width: 550px;
    height: 650px;
    background-repeat: no-repeat;
    border-radius: 50%;
    filter: blur(100px);
}

.bg-block-r {
    z-index: 1;
    bottom: 0;
    right: 0;
    position: fixed;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    width: 550px;
    height: 650px;
    background-repeat: no-repeat;
    border-radius: 50%;
    filter: blur(100px);
    transform: scale(-1, -1);
}

@media (max-width: 1024px) {
    .bg-block-b,
    .bg-block-r {
        width: 150px;
        height: 250px;
        background-size: contain;
    }
}

.login-area {
    font-family: 'Noto Sans TC';
    position: relative;
    text-align: center;
    width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    z-index: 5;
    padding: 25px 0;
    color: #000;
    background: linear-gradient(180deg, #ffffff 0.33%, rgba(255, 255, 255, 0.28) 116.45%);
    border: 3px solid #ffffff;
    border-radius: 60px;
}

.login-area::after {
    content: '';
    top: 20%;
    right: -100px;
    width: 200px;
    height: 700px;
    position: absolute;
    background: radial-gradient(50% 50% at 49.93% 50%, #00b4c2 0%, rgba(0, 164, 194, 0.85) 6%, rgba(0, 140, 194, 0.63) 17%, rgba(0, 120, 194, 0.43) 29%, rgba(0, 103, 194, 0.28) 41%, rgba(0, 91, 194, 0.15) 54%, rgba(0, 82, 194, 0.07) 67%, rgba(0, 76, 194, 0.02) 82%, rgba(0, 75, 194, 0) 100%);
    z-index: -2;
    filter: blur(5px);
    mix-blend-mode: color-dodge;
}

.login-area::before {
    content: '';
    top: -30%;
    left: -100px;
    width: 200px;
    height: 700px;
    position: absolute;
    background: radial-gradient(50% 50% at 49.93% 50%, #00b4c2 0%, rgba(0, 164, 194, 0.85) 6%, rgba(0, 140, 194, 0.63) 17%, rgba(0, 120, 194, 0.43) 29%, rgba(0, 103, 194, 0.28) 41%, rgba(0, 91, 194, 0.15) 54%, rgba(0, 82, 194, 0.07) 67%, rgba(0, 76, 194, 0.02) 82%, rgba(0, 75, 194, 0) 100%);
    z-index: 10;
    filter: blur(1px);
    mix-blend-mode: color-dodge;
}

@media (max-width: 767px) {
    .login-area {
        width: 90vw;
        border-radius: 30px;
        padding: 30px 25px;
    }
    .login-area::after {
        top: 40%;
        right: -100px;
        width: 200px;
        height: 400px;
    }
}

/* 输入框样式 */
.login-input input {
    background: #fff !important;
    border: none !important;
    width: 100%;
}

.login-input input:focus {
    background: #fff !important;
    border: none !important;
    outline: none;
}

.login-input input::placeholder {
    color: #797979 !important;
    background: #fff !important;
}

.form-control {
    border: 0;
    font-size: 16px;
    background-color: transparent;
}

/* 按钮组样式 */
.button-group {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

.register-btn {
    flex: 1;
    max-width: 200px;
    padding: 18px 24px;
    background: linear-gradient(rgb(81, 138, 255) 0%, rgb(52, 112, 255) 24%, rgb(23, 85, 255) 55%, rgb(6, 69, 255) 81%, rgb(0, 64, 255) 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.register-btn:hover {
    background: linear-gradient(rgb(102, 148, 238) 0%, rgb(52, 112, 255) 24%, rgb(23, 85, 255) 55%, rgb(6, 69, 255) 81%, rgb(0, 64, 255) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.login-btn {
    flex: 1;
    max-width: 200px;
    padding: 18px 24px;
    background: #fff;
    color: rgb(23, 85, 255);
    border: 1px solid rgb(23, 85, 255);
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.login-btn:hover {
    background: rgb(23, 85, 255);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

@media (max-width: 1024px) {
    .button-group {
        /* 設計稿在手機上兩顆按鈕仍是左右並排，不要改成直向堆疊 */
        gap: 15px;
    }
    .register-btn,
    .login-btn {
        max-width: 100%;
        border-radius: 25px;
        padding: 16px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .button-group {
        margin: 15px 0;
    }
    .register-btn,
    .login-btn {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* 简化页脚样式 */
.footer-simple {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 10;
}

.footer-simple-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-simple p {
    margin: 0;
    line-height: 1.6;
}

.footer-simple a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-simple a:hover {
    color: #3498db;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-simple {
        padding: 15px 0;
        font-size: 12px;
    }

    .footer-simple-container {
        padding: 0 15px;
    }
}

/* 商店登入：左半部主視覺、右半部表單 */
.login-bg.login-split {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
}

.login-split .login-visual {
    position: relative;
    flex: 0 0 50%;
    width: 50%;
    z-index: 5;
    overflow: hidden;
}

.login-split .login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 左上角品牌：與首頁導覽列 Logo 一致（購物車圖示＋站名＋標語） */
.login-split .login-visual-brand {
    position: absolute;
    top: 32px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #4a4a4a;
}

.login-split .login-visual-brand .logo-icon {
    display: flex;
    align-items: center;
    color: #4a4a4a;
}

.login-split .login-visual-brand .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.login-split .login-visual-brand .logo-text strong {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.login-split .login-visual-brand .logo-text small {
    font-size: 11px;
    color: #e8704f;
    letter-spacing: 0.5px;
}

.login-split .login-area {
    flex: 1;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 60px 40px;
    border-radius: 0;
    border: none;
    /* 依設計稿：右半部為淡藍漸層底（左上近白 → 右下藍） */
    background: linear-gradient(135deg, #fbfcfe 0%, #ffffff 18%, #b6d4f0 62%, #0980c0 100%);
}

/* 原始卡片版的柔光效果在左右分割版型不需要 */
.login-split .login-area::before,
.login-split .login-area::after {
    display: none;
}

/* SIGN IN：灰色小標籤（設計稿） */
.login-split .bg-signin {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 20px;
    border-radius: 6px;
    background: #e9eef5;
    color: #7c8aa0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    line-height: 1;
}

/* 輸入框：白底 + 淺灰框線（設計稿） */
.login-split .login-input .bg-white {
    border: 1px solid #e3e9f2;
}

/* 窄螢幕改為上下排列，主視覺縮為橫幅 */
@media (max-width: 900px) {
    .login-bg.login-split {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        /* 漸層改由外層統一處理：插圖與表單之間的留白也會有淡淡過渡色，不會是一片純白 */
        background: linear-gradient(180deg, #ffffff 0%, #f4f9fe 28%, #d8e9f9 60%, #9cc8ec 86%, #5aa3d8 100%);
    }

    .login-split .login-visual {
        flex: none;
        width: 100%;
        /* 放大版：固定高度換取更大的主視覺，代價是左右各裁掉約 8%（邊緣的綠葉、地球） */
        height: 310px;
    }

    .login-split .login-visual img {
        height: 100%; /* 回歸主規則的 object-fit: cover（左右裁切） */
        /* 裁切重心偏左：保住左下角的「Global Shopping Just a Click Away」，只犧牲右側地球邊緣 */
        object-position: 20% center;
    }

    /* 品牌標籤加白色半透明底：插圖上方是天空與手機，直接疊字容易糊在一起 */
    .login-split .login-visual-brand {
        top: 14px;
        left: 14px;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(4px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    }

    .login-split .login-visual-brand .logo-text strong {
        font-size: 17px;
    }

    /* 表單內容垂直居中、間距放鬆一點，讓插圖與表單的留白平均，版面不會一頭空一頭擠 */
    .login-split .login-area {
        width: 100%;
        padding: 30px 20px 34px;
        justify-content: center;
        background: transparent; /* 底色交給外層漸層，避免接縫 */
    }

    .login-split .bg-signin {
        margin-bottom: 20px;
    }

    .login-split .button-group {
        margin: 22px 0 18px;
    }
}
