/* account-access design 20261031 */
/* Root and Layout */
.account-access {
  box-sizing: border-box;
  min-width: 0;
  width: calc(100% - 32px);
  max-width: 760px;
  margin: 48px auto 0;
  padding: 0;
  font-family: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #243746;
}

.account-access .account-layout {
  display: block;
  margin: 0;
}

.account-access .account-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px;
  background-color: #fff;
  border: 1px solid #dce1d9;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Typography */
.account-access .access-heading {
  text-align: center;
  margin-bottom: 24px;
}

.account-access .access-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background-color: #e8f0eb;
  border-radius: 50%;
}

.account-access .access-icon svg {
  width: 32px;
  height: 32px;
  stroke: #476451;
}

.account-access .access-eyebrow {
  font-size: 0.875rem;
  color: #53635c;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-access h1 {
  font-size: 1.875rem;
  margin: 8px 0;
  color: #243746;
}

.account-access h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #243746;
}

.account-access .access-subtitle {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.account-access .muted {
  color: #53635c;
  font-size: 1.125rem;
}

/* Forms */
.account-access .account-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-access label {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.account-access input[type="text"],
.account-access input[type="email"],
.account-access input[type="password"],
.account-access input[type="tel"],
.account-access textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 2px solid #a6b3a9;
  border-radius: 8px;
  font-size: 1.125rem;
  background-color: #fff;
  color: #243746;
}

.account-access input:focus-visible,
.account-access textarea:focus-visible {
  outline: 3px solid #476451;
  outline-offset: 2px;
}

/* Checkbox Overrides */
.account-access .account-agree,
.account-access .social-login-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
  cursor: pointer;
}

.account-access .account-agree input,
.account-access .social-login-consent input {
  box-sizing: border-box;
  min-width: 24px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 24px;
  margin: 0;
  cursor: pointer;
}

/* Sections */
.account-access .access-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #476451;
  margin: 24px 0 0;
  padding-top: 24px;
  border-top: 1px solid #dce1d9;
}

.account-access .account-name {
  display: flex;
  gap: 16px;
}

.account-access .account-name label {
  flex: 1;
}

/* Buttons */
.account-access .button {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.account-access .button.primary {
  background-color: #476451;
  color: #fff;
  border: none;
}

.account-access .button.primary:hover {
  background-color: #3a5242;
}

.account-access .button.outline {
  background-color: #fff;
  color: #476451;
  border: 2px solid #476451;
}

.account-access .button:focus-visible {
  outline: 3px solid #476451;
  outline-offset: 2px;
}

/* Links */
.account-access .text-link {
  box-sizing: border-box;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #476451;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 500;
}

.account-access .text-link:hover {
  color: #3a5242;
}

.account-access .account-forgot {
  display: block;
  text-align: right;
  margin-top: -8px;
}

/* Alerts and Notices */
.account-access .account-alert {
  display: none;
}

.account-access .account-alert:not(:empty) {
  display: block;
  padding: 16px;
  border: 1px solid #e0cfcf;
  background-color: #fdf2f2;
  color: #8a3b3b;
  border-radius: 8px;
  margin-bottom: 16px;
}

.account-access .notice {
  padding: 16px;
  border: 1px solid #cdecd3;
  background-color: #f2fdf5;
  color: #2b5436;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Policy Details */
.account-access .account-policy {
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #dce1d9;
  border-radius: 12px;
  margin-bottom: 16px;
}

.account-access .account-policy summary {
  box-sizing: border-box;
  min-height: 44px;
  cursor: pointer;
  font-weight: 700;
  color: #243746;
  padding: 12px 0;
}

.account-access .account-policy div {
  max-height: 300px;
  overflow-y: auto;
  padding-top: 12px;
  font-size: 1rem;
  line-height: 1.8;
  color: #53635c;
}

/* Captcha / Challenge */
.account-access [data-signup-challenge] {
  box-sizing: border-box;
  min-width: 0;
  margin-bottom: 24px;
}

.account-access [data-signup-challenge] img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px 0;
}

.account-access [data-signup-challenge] button {
  margin-bottom: 12px;
}

/* Secondary Area */
.account-access .account-secondary {
  box-sizing: border-box;
  min-width: 0;
  margin-top: 28px;
  padding: 24px;
  border-top: 1px solid #dce1d9;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.account-access .account-secondary p {
  margin: 0;
  color: #53635c;
}

/* Support Footer */
.account-access .access-support {
  box-sizing: border-box;
  min-width: 0;
  font-size: 1rem;
  color: #53635c;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.account-access .access-support a {
  color: #476451;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .account-access {
    width: 100%;
    padding: 24px 16px;
  }

  .account-access .account-card {
    padding: 28px 20px;
  }

  .account-access h1 {
    font-size: 1.625rem;
  }

  .account-access .account-name {
    flex-direction: column;
    gap: 16px;
  }

  .account-access .account-secondary {
    flex-direction: column;
    text-align: center;
  }
}/* Integration: override inherited form typography and protect flexible sizing. */
.account-access{margin:0 auto;padding:48px 0}
.account-access *,.account-access *::before,.account-access *::after{box-sizing:border-box;min-width:0}
.account-access h1,.account-access h2,.account-access h3{font-family:inherit;font-weight:700;line-height:1.45}
.account-access .account-form label{font-size: 1.125rem;display:grid;gap:8px}
.account-access .account-form input:not([type=hidden]):not([type=checkbox]){width:100%;min-height:56px;padding:14px;border:2px solid #a6b3a9;border-radius:8px;font:inherit;background:#fff}
.account-access .account-form .account-agree,.account-access .account-form .social-login-consent{display:flex;flex-direction:row;align-items:flex-start;min-height:44px;line-height:1.7}
.account-access .account-form .account-agree input,.account-access .account-form .social-login-consent input{width:24px;height:24px;min-height:24px;flex:0 0 24px;margin:4px 0 0;padding:0}
.account-access :focus-visible{outline:3px solid #476451;outline-offset:3px}
.account-access .button{font-family:inherit;line-height:1.7;overflow-wrap:anywhere}
.account-access a{min-height:44px;display:inline-flex;align-items:center}
.account-access .account-card p{line-height:1.7}
.account-access .account-card h2.access-subtitle{font-size: 1.25rem}
.account-access .account-form .muted{font-size: 1rem;margin:-10px 0 0}
.account-access .account-secondary{padding:24px 0 0;flex-direction:column}
.account-access .account-policy{margin-bottom:0}
.account-access .account-policy summary{font-size: 1.125rem;line-height:1.7}
.account-access .breadcrumb{font-size: 1rem;margin:0 auto 24px;max-width:680px}
.account-access .access-support{line-height:1.7;align-items:center;text-align:center}
@media(max-width:600px){.account-access{padding:24px 16px}.account-access .account-card{padding:28px 20px}}

.account-access .account-form input:not([type=hidden]):not([type=checkbox]){font-weight:400}
/* Allow long secondary links to reflow with the site's 200% text control. */
.account-access a{max-width:100%;white-space:normal;overflow-wrap:anywhere}
/* Reviewed interaction refinements: visible password control and field feedback. */
.account-access .access-password-field{display:grid;gap:8px}
.account-access .access-password-toggle{justify-self:end;min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #a6b3a9;border-radius:8px;background:#fff;color:#37533f;font:inherit;font-size:1rem;line-height:1.7;white-space:normal;cursor:pointer}
.account-access .access-password-toggle:hover{background:#e8f0eb}
.account-access .access-field-error{margin:0;padding:12px 16px;border-left:4px solid #8a3b3b;background:#fdf2f2;color:#8a3b3b;font-size:1rem;line-height:1.7;overflow-wrap:anywhere}
.account-access .account-form input[aria-invalid=true]{border-color:#8a3b3b}
.account-access .access-progress{margin:0;padding:12px 16px;background:#eef4ef;color:#37533f;border-radius:8px;font-size:1rem;line-height:1.7}
.account-access .access-progress:empty{display:none}
.account-access .account-policy [tabindex="0"]{padding:12px 4px;overscroll-behavior:contain}
.account-access .account-policy [tabindex="0"]:focus-visible{outline-offset:0}
