/* Google Sign-In material button — HPOS dark-login variant */
.gsi-material-button {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: #f8f9fa;
  background-image: none;
  border: 1px solid #dadce0;
  border-radius: 20px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  font-family: "Roboto", "Noto Sans TC", system-ui, sans-serif;
  font-size: 14px;
  height: 42px;
  letter-spacing: 0.02em;
  outline: none;
  overflow: hidden;
  padding: 0 14px;
  position: relative;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
}

.gsi-material-button.gsi-material-button-block {
  display: block;
  width: 100%;
  max-width: none;
}

/* 深色登入頁：略帶 HPOS 藍色邊框 */
.gsi-material-button.gsi-material-button--on-dark {
  background-color: #f1f3f4;
  border-color: rgba(138, 180, 248, 0.45);
  color: #202124;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
  flex-shrink: 0;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: center;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  flex-grow: 0;
  font-family: inherit;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  transition: opacity 0.2s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: rgba(248, 249, 250, 0.38);
  border-color: rgba(31, 31, 31, 0.12);
}

.gsi-material-button:disabled .gsi-material-button-contents,
.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 0.38;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus-visible .gsi-material-button-state {
  background-color: #4285f4;
  opacity: 0.14;
}

.gsi-material-button:not(:disabled):hover {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.28), 0 0 0 1px rgba(138, 180, 248, 0.2);
}

.gsi-material-button.gsi-material-button--on-dark:not(:disabled):hover {
  border-color: rgba(138, 180, 248, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(138, 180, 248, 0.35);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: #4285f4;
  opacity: 0.08;
}

.gsi-material-button-sr {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.oauth-divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
}
.oauth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.oauth-divider-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.login-page .oauth-divider-line {
  background: rgba(255, 255, 255, 0.1);
}
.login-page .oauth-divider-text {
  color: rgba(255, 255, 255, 0.4);
}
