/* 添加命名空間 .upoker-login 來限制樣式範圍 */
.upoker-login {
  /* 深紫色漸層背景 */
  background: linear-gradient(135deg, #2b1a2d 0%, #1a0f1c 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.upoker-login #login {
  background: transparent;
  padding: 26px 24px;
  width: 320px;
  margin: 20px auto;
  box-shadow: none;
}

.upoker-login .wp-login-title {
  color: #fff;
  text-align: center;
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

.upoker-login .message {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #e91e63;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  margin-bottom: 20px;
  font-size: 13px;
}

.upoker-login .user-pass-wrap {
  margin-bottom: 16px;
}

.upoker-login .wp-pwd {
  position: relative;
}

.upoker-login .input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  line-height: 1.33333333;
  width: 100%;
  padding: 3px 10px;
  margin: 0;
  min-height: 40px;
  border-radius: 3px;
  box-sizing: border-box;
}

.upoker-login .input:focus {
  border-color: #e91e63;
  box-shadow: 0 0 0 1px #e91e63;
}

.upoker-login .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.upoker-login .button-primary {
  background: #e91e63;  /* 粉紅色主按鈕 */
  border-color: #d81557;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  min-height: 32px;
  line-height: 2.30769231;
  padding: 0 12px;
  border-radius: 3px;
  white-space: nowrap;
  border-width: 1px;
  border-style: solid;
  width: 100%;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;    /* 或 block / flex 依需求 */
  align-items: center;     /* 垂直置中 */
  justify-content: center;
}

.upoker-login .button-primary:hover {
  background: #d81557;
  border-color: #c2185b;
}

.upoker-login .button-primary:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e91e63;
}

.upoker-login .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: #e91e63;
  color: #e91e63;
  vertical-align: top;
}

.upoker-login .button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #d81557;
  color: #d81557;
}

.upoker-login .button-link {
  color: #e91e63;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
}

.upoker-login .button-link:hover {
  color: #d81557;
  text-decoration: underline;
}

.upoker-login .submit {
  margin: 0;
  padding: 0;
}

.upoker-login .nav {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
}

.upoker-login .separator {
  color: rgba(255, 255, 255, 0.4);
}

.upoker-login .forgetmenot {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.upoker-login .forgetmenot label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.5;
  display: inline-block;
  margin-bottom: 0;
  cursor: pointer;
}

.upoker-login .forgetmenot input[type="checkbox"] {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #50575e;
  clear: none;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
  height: 16px;
  margin: 0 4px 0 0;
  outline: 0;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 16px;
  min-width: 16px;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  transition: .05s border-color ease-in-out;
}

.upoker-login .forgetmenot input[type="checkbox"]:checked {
  background: #e91e63;
  border-color: #d81557;
}

.upoker-login .forgetmenot input[type="checkbox"]:checked::before {
  content: "";
  display: block;
  margin: -3px 0 0 -4px;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='10' height='10' fill='%23fff'%3E%3Cpath d='M14.83 4.89l1.34.94-5.81 8.38H9.02L5.78 9.67l1.34-1.25 2.57 2.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.upoker-login .register-type,
.upoker-login .reset-type {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.upoker-login .register-type button,
.upoker-login .reset-type button {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #e91e63;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  color: #fff;
}

.upoker-login .register-type button.button-primary,
.upoker-login .reset-type button.button-primary {
  background: #e91e63;
  color: #fff;
}

.upoker-login .input-with-button {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.upoker-login .input-with-button .input {
  flex: 1;
  margin-right: 0;
  margin-bottom: 0;
}

.upoker-login .input-with-button .button {
  padding: 0 12px;
  font-size: 13px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #e91e63;
  color: #e91e63;
  white-space: nowrap;
  cursor: pointer;
}

.upoker-login .input-with-button .button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #d81557;
  color: #d81557;
}

.upoker-login .user-pass-wrap:not(:last-child) {
  margin-bottom: 12px;
}

.custom-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

.custom-login-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group button {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.message.error {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.message.success {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* 手機號碼輸入框組合樣式 */
.upoker-login .phone-input {
  display: flex;
  flex: 1;
  gap: 8px;
}

.upoker-login .phone-input .country-code {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 70px;
  padding: 8px;
  border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 6l5 5 5-5 2 1-7 7-7-7 2-1z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  visibility: visible !important; /* 強制顯示 select 元素 */
}

.upoker-login .phone-input .country-code:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.upoker-login .phone-input .input {
  flex: 1;
  margin: 0;
}

/* 移除 WordPress 管理列 */
html {
  margin-top: 0 !important;
}

#wpadminbar {
  display: none;
}

/* 確保頁面填滿整個視窗 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

/* 調整滾動條樣式 */
.upoker-login::-webkit-scrollbar {
  width: 6px;
}

.upoker-login::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.upoker-login::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 禁用狀態樣式 */
.upoker-login button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.upoker-login button:disabled:hover {
  background: #e91e63;
  border-color: #d81557;
}

.upoker-login .button-secondary:disabled {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* WordPress 風格通知 */
.notification {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  max-width: 400px;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.notification.success {
  background: #00a32a;
  color: #fff;
  border-left: 4px solid #008a20;
}

.notification.error {
  background: #d63638;
  color: #fff;
  border-left: 4px solid #b32d2e;
}

.notification.info {
  background: #72aee6;
  color: #fff;
  border-left: 4px solid #2271b1;
}

.notification.warning {
  background: #dba617;
  color: #fff;
  border-left: 4px solid #975e0d;
}

/* 通知動畫 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s, transform 0.3s;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
} 