/* PC login/register page */
.login_page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login_container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    width: 60%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
    isolation: isolate;
}

.login_page::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 30%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.login_page::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 70%, rgba(154, 123, 47, 0.08) 0%, transparent 50%);
    animation: float-reverse 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -20px) rotate(5deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 20px) rotate(-5deg); }
}

/* 宸︿晶鍐呭鍖哄煙 */
.login_left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    z-index: 10;
    color: white;
}

.left_content {
    max-width: 450px;
}

.brand_logo {
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #C9A84C, #E8D5A3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 2px;
    white-space: nowrap;
    line-height: 1.1;
}

.left_title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.left_desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.feature_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature_item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.feature_icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #C9A84C, #9A7B2F);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature_icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.feature_text {
    font-weight: 500;
}

.decorative_image {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 300px;
    height: 300px;
    opacity: 0.15;
}

.decorative_image svg {
    width: 100%;
    height: 100%;
    color: #C9A84C;
}

/* 鍙充晶鐧诲綍鍖哄煙 */
.login_right {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 10;
}

.auth_card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    position: relative;
    z-index: 3;
}

.auth_form {
    padding: 25px 25px;
    position: relative;
    z-index: 4;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth_header {
    background: linear-gradient(135deg, #C9A84C 0%, #9A7B2F 100%);
    padding: 25px 20px 18px;
    text-align: center;
    position: relative;
}

.auth_header::before, .auth_header::after {
    content: '\2726';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    opacity: 0.6;
}

.auth_header::before { left: 20px; }
.auth_header::after { right: 20px; }

.auth_header h1 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth_header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    margin: 6px 0 0;
    font-weight: 300;
}

.auth_tabs {
    display: flex;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
    position: relative;
    z-index: 5;
}

.auth_tab {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    color: #666;
    border: none;
    background: transparent;
    font-family: inherit;
    line-height: 1.2;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.auth_tab.active {
    background: linear-gradient(135deg, #C9A84C, #9A7B2F);
    color: white;
    box-shadow: 0 3px 12px rgba(201, 168, 76, 0.3);
}

.form_group {
    margin-bottom: 14px;
    position: relative;
}

.form_group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form_group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.form_group input:focus {
    outline: none;
    border-color: #C9A84C;
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form_group input::placeholder {
    color: #999;
}

/* 骞舵帓杈撳叆妗?*/
.form_group_row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.form_group_row .form_group {
    flex: 1;
    margin-bottom: 0;
}

.form_group_row .form_group input {
    padding: 10px 12px;
    font-size: 13px;
}

/* 瀵嗙爜杈撳叆妗?*/
.password-group {
    position: relative;
}

.password-group input {
    padding-right: 45px !important;
}

.toggle-password-auth {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password-auth:hover {
    color: #C9A84C;
}

.auth_btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #C9A84C, #9A7B2F);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    margin-top: 8px;
}

.auth_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(201, 168, 76, 0.4);
}

.auth_btn:active {
    transform: translateY(0);
}

.auth_btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth_links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.auth_links a {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth_links a:hover {
    color: #C9A84C;
}

.auth_links .btn-create {
    font-weight: 600;
    color: #C9A84C;
}

.auth_guest_btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 11px 14px;
    border: 1.5px solid #d8cbb0;
    border-radius: 10px;
    background: #fff;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.auth_guest_btn:hover {
    color: #9A7B2F;
    border-color: #C9A84C;
    background: #fffaf3;
}

.register_form {
    display: none;
}

.register_form.active {
    display: block;
}

.checkbox_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    padding: 5px 0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkbox_label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    opacity: 1;
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox_label input[type="checkbox"]:checked {
    background: #C9A84C;
    border-color: #C9A84C;
}

.checkbox_label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox_label input[type="checkbox"]:hover {
    border-color: #C9A84C;
}

.checkbox_label a {
    color: #C9A84C;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: keep-all;
}

.checkbox_label a:hover {
    color: #9A7B2F;
    text-decoration: underline;
}

.error_message {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

#service_eror {
    display: none;
}

.register-service {
    display: none;
}

@media (max-width: 900px) {
    .login_page {
        flex-direction: column;
    }

    .login_left {
        flex: none;
        padding: 40px 25px;
        text-align: center;
    }

    .left_content {
        max-width: 100%;
    }

    .brand_logo {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .left_title {
        font-size: 26px;
    }

    .feature_item {
        justify-content: center;
    }

    .decorative_image {
        display: none;
    }

    .login_right {
        flex: none;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .login_left {
        padding: 25px 15px;
    }

    .left_title {
        font-size: 22px;
    }

    .left_desc {
        font-size: 14px;
    }

    .auth_form {
        padding: 20px 15px;
    }

    .form_group input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .auth_btn {
        padding: 12px;
        font-size: 13px;
    }
}

/* Auth page layout extras */
/* Auth page layout: hide global chrome */
body.pc-auth-page #card-header,
body.pc-auth-page .control-all-header-static,
body.pc-auth-page footer,
body.pc-auth-page .shopcarInfo,
body.pc-auth-page .backTop,
body.pc-auth-page .pupor-coupon,
body.pc-auth-page .overPage,
body.pc-auth-page #cookie-consent-popup,
body.pc-auth-page #mm-blocker,
body:has(.pc-auth-page) #card-header,
body:has(.pc-auth-page) .control-all-header-static,
body:has(.pc-auth-page) footer,
body:has(.pc-auth-page) .shopcarInfo,
body:has(.pc-auth-page) .backTop,
body:has(.pc-auth-page) .pupor-coupon,
body:has(.pc-auth-page) .overPage,
body:has(.pc-auth-page) #cookie-consent-popup,
body:has(.pc-auth-page) #mm-blocker {
    display: none !important;
}

body.pc-auth-page,
body:has(.pc-auth-page) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding-top: 0 !important;
}

body.pc-auth-page main.login_page,
body:has(.pc-auth-page) main.login_page {
    padding-bottom: 0;
}

body.pc-auth-page main.login_page::after,
body:has(.pc-auth-page) main.login_page::after {
    display: none !important;
}

.pc-auth-page.login_page {
    min-height: 100vh;
    padding: 24px 16px;
}

.pc-auth-page .login_container {
    width: min(1120px, 100%);
}

.left_tagline {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(201, 168, 76, 0.16);
    border: 1px solid rgba(201, 168, 76, 0.28);
}

.feature_grid {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature_grid .feature_item {
    margin-bottom: 0;
    align-items: flex-start;
}

.feature_grid .feature_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.feature_grid .feature_text strong {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.feature_grid .feature_text span {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.left_stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.left_stat {
    min-width: 88px;
}

.left_stat strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #e8d5a3;
    line-height: 1.1;
}

.left_stat span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.auth_links--center {
    justify-content: center;
}

.code_row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.code_row .mo-form-input,
.code_row input {
    flex: 1;
    min-width: 0;
}

.code_send_btn,
.reset-code {
    flex-shrink: 0;
    min-width: 92px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #C9A84C, #9A7B2F);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.code_send_btn:hover,
.reset-code:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.code_send_btn:disabled,
.reset-code.reset-code-prohibit,
.reset-code:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.password-group .toggle-password-auth {
    top: auto;
    bottom: 11px;
    transform: none;
}

.auth_terms_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 6px;
    cursor: pointer;
    user-select: none;
}

.auth_terms_input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.auth_terms_icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.auth_terms_icon svg {
    width: 11px;
    height: 11px;
    display: none;
    fill: #fff;
}

.auth_terms_input:checked + .auth_terms_icon {
    background: #C9A84C;
    border-color: #C9A84C;
}

.auth_terms_input:checked + .auth_terms_icon svg {
    display: block;
}

.auth_terms_text {
    font-size: 12px;
    line-height: 1.55;
    color: #666;
}

.auth_terms_text a {
    color: #9A7B2F;
    text-decoration: none;
    font-weight: 600;
}

.auth_terms_text a:hover {
    text-decoration: underline;
}

.mo-form-item.form-show-error input {
    border-color: #e74c3c;
}

.mo-form-item-error {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .feature_grid {
        grid-template-columns: 1fr;
    }

    .pc-auth-page .login_container {
        width: 100%;
    }
}
