/* 登錄容器 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--accent-color);
}

/* 頭部區域 */
.login-header {
    background: var(--accent-color);
    /* border-bottom: 1px solid #e5e5e5; */
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* 返回按鈕 */
.back-button-container {
    position: absolute;
    left: 20px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(255, 207, 112, 0.2);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-2px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.logo-image {
    width: 200px;
    height: auto;
    object-fit: cover;
}

/* 主要登錄區域 */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-form-container {
    /* background: #ffffff; */
    border-radius: 16px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); */
    padding: 50px;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;

    /* background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px); */
}

/* .login-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffcf70 0%, #ffb845 100%);
} */

/* 左側圖片區域 */
.login-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.login-image-container {
    width: 100%;
    max-width: 600px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 207, 112, 0.2);
    position: relative;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.login-image:hover {
    transform: scale(1.05);
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 207, 112, 0.1) 0%, rgba(255, 184, 69, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-image-container:hover .login-image-overlay {
    opacity: 1;
}

/* 登錄標題區域 */
.login-header-section {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: 16px;
    color: #f6f6f6;
    margin: 0;
    line-height: 1.5;
}

/* 註冊進度指示器 */
.register-progress {
    margin-bottom: 32px;
}

.layui-form-select {
    width: 100%;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: #000000;
}

.progress-step.active .step-label {
    color: var(--primary-gold);
}

.progress-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 0 8px;
}

.progress-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.progress-step.active ~ .progress-line::after,
.progress-step.active + .progress-step.active ~ .progress-line::after {
    width: 100%;
}

.progress-step.active ~ .progress-step .step-number {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.6);
}

.progress-step.active ~ .progress-step .step-label {
    color: rgba(255, 255, 255, 0.6);
}

/* 表單步驟 */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 發送驗證碼按鈕 - 使用與登錄頁面相同的樣式 */
.send-code-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--family-font);
    box-shadow: 0 4px 12px rgba(255, 207, 112, 0.3);
    height: 48px;
    line-height: 48px;
    white-space: nowrap;
}

.send-code-btn:hover {
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 207, 112, 0.3);
}

.send-code-btn:active {
    transform: translateY(0);
}

.send-code-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.send-code-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 倒計時文字 */
.countdown-text {
    color: #999999;
    font-size: 14px;
}

/* 重置密碼步驟 */
.reset-password-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reset-password-header {
    text-align: center;
    margin-bottom: 8px;
}

.reset-password-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.reset-password-subtitle {
    font-size: 14px;
    color: #f6f6f6;
    margin: 0;
    line-height: 1.5;
}

/* 密碼規則提示 */
.password-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.password-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.password-rule-item.valid {
    color: var(--primary-gold);
}

.password-rule-item.invalid {
    color: rgba(255, 255, 255, 0.6);
}

.rule-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.password-rule-item.valid .rule-icon {
    color: var(--primary-gold);
}

.password-rule-item.invalid .rule-icon {
    color: rgba(255, 255, 255, 0.4);
}

.rule-text {
    line-height: 1.4;
}

/* 密碼顯示/隱藏切換按鈕 */
.password-toggle {
    position: absolute;
    top: 11px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    z-index: 3;
}

.password-toggle:hover {
    color: var(--primary-gold);
    background: rgba(255, 207, 112, 0.1);
}

.eye-icon {
    transition: all 0.3s ease;
}

/* 返回登錄鏈接 */
.back-login-link {
    text-align: center;
    font-size: 14px;
    color: #f6f6f6;
    margin-top: 8px;
}

.back-login-text {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: all 0.3s ease;
}

.back-login-text:hover {
    color: #ffb845;
    text-decoration: underline;
}

/* 密碼不匹配樣式 */
.layui-input.password-mismatch {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

.layui-input,
.layui-select,
.layui-textarea {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--family-font);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 48px;
}

.layui-input:valid,
.layui-input:invalid,
.layui-input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.1) !important;
}

.layui-input:focus,
.layui-select:focus,
.layui-textarea:focus {
    outline: none;
    border-color: var(--primary-gold) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 2px rgba(255, 207, 112, 0.2);
}

.layui-input::placeholder,
.layui-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    top: 14px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.back-login-btn {
    width: 100%;
    max-width: 300px;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--family-font);
    box-shadow: 0 4px 12px rgba(255, 207, 112, 0.3);
    margin-top: 20px;
    text-decoration: none;
}

.back-login-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 207, 112, 0.3);
    text-decoration: none;
    color: #000000;
}

/* 驗證碼輸入框和按鈕同一行 */
.verification-code-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.verification-input-wrapper {
    flex: 1;
    min-width: 0;
}

/* 驗證碼輸入框樣式 */
#verificationCode {
    font-size: 14px;
    line-height: 28px;
    color: #ffffff;
    padding-left: 42px;
    font-family: var(--family-font);
}

.password-input {
    padding-left: 42px !important;
}

/* 發送驗證碼按鈕 - 在同一行顯示時的額外樣式 */
.verification-code-wrapper .send-code-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

/* 確保輸入框圖標顏色與登錄頁面一致 */
.forgetPassword .input-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* 驗證按鈕樣式 - 與登錄頁面保持一致 */
.submit-btn {
    width: 100%;
    height: fit-content;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--gold-dark) 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    line-height: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--family-font);
    box-shadow: 0 4px 12px rgba(255, 207, 112, 0.3);
}

.submit-btn:hover {
    box-shadow: 0 8px 25px rgba(255, 207, 112, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.layui-input,
.layui-select,
.layui-textarea {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--family-font);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 48px;
}

.layui-input:valid,
.layui-input:invalid,
.layui-input:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.1) !important;
}

.layui-input:focus,
.layui-select:focus,
.layui-textarea:focus {
    outline: none;
    border-color: var(--primary-gold) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 2px rgba(255, 207, 112, 0.2);
}

.layui-input::placeholder,
.layui-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.layui-form-label {
    color: #ffffff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 2;
    top: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.layui-form-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.layui-input-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
}

/* 底部區域 */
.login-footer {
    background: var(--accent-color);
    /* border-top: 1px solid #e5e5e5; */
    padding: 20px 0;
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: #999999;
    margin: 0;
}

/* 密碼規則提示 */
.password-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.password-rule-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.password-rule-item.valid {
    color: var(--primary-gold);
}

.password-rule-item.invalid {
    color: rgba(255, 255, 255, 0.6);
}

.rule-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.password-rule-item.valid .rule-icon {
    color: var(--primary-gold);
}

.password-rule-item.invalid .rule-icon {
    color: rgba(255, 255, 255, 0.4);
}

.rule-text {
    line-height: 1.4;
}

/* 密碼顯示/隱藏切換按鈕 */
.password-toggle {
    position: absolute;
    top: 11px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.6);
    z-index: 3;
}

.password-toggle:hover {
    color: var(--primary-gold);
    background: rgba(255, 207, 112, 0.1);
}

.eye-icon {
    transition: all 0.3s ease;
}

.password-input {
    padding-left: 42px !important;
}

/* 聯絡偏好 */
.contact-preferences {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 17px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    z-index: 1;
    top: 0;
    opacity: 0;
    overflow: hidden;
    display: block;
}

.checkbox-label {
    font-size: 14px;
    color: #ffffff;
    cursor: pointer;
}

/* 驗證碼輸入框和按鈕同一行 */
.verification-code-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.verification-input-wrapper {
    flex: 1;
    min-width: 0;
}

.verification-code-wrapper .send-code-btn {
    flex-shrink: 0;
    width: auto;
    min-width: 140px;
    margin-top: 0;
}

/* Layui Select 樣式 */
.layui-select {
    padding-left: 16px !important;
}

.layui-select option {
    background: var(--accent-color);
    color: #ffffff;
}