/* 管饱 A2 邮箱验证码登录切换与表单样式 */
.gb-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
html.dark .gb-login-tabs {
  background: #1e293b;
  border-color: #334155;
}
.gb-login-tab {
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #475569;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
html.dark .gb-login-tab {
  color: #94a3b8;
}
.gb-login-tab.is-active {
  background: #ffffff;
  color: #0f766e;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
html.dark .gb-login-tab.is-active {
  background: #0f172a;
  color: #2dd4bf;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.gb-code-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gb-code-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
html.dark .gb-code-field label {
  color: #e2e8f0;
}
.gb-code-input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.gb-code-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
html.dark .gb-code-input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}
.gb-code-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.gb-code-row .gb-code-input {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
}
.gb-send-btn {
  flex: 0 0 auto;
  min-width: 112px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #0d9488;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.gb-send-btn:hover:not(:disabled) {
  background: #ccfbf1;
}
.gb-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
html.dark .gb-send-btn {
  background: rgba(13, 148, 136, 0.15);
  color: #2dd4bf;
  border-color: #14b8a6;
}
.gb-code-submit {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #0d9488;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}
.gb-code-submit:hover:not(:disabled) {
  background: #0f766e;
}
.gb-code-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.gb-code-msg {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.gb-code-msg[hidden] {
  display: none;
}
.gb-code-msg.is-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.gb-code-msg.is-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
html.dark .gb-code-msg.is-ok {
  background: rgba(6, 95, 70, 0.25);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
html.dark .gb-code-msg.is-err {
  background: rgba(127, 29, 29, 0.3);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}
.gb-code-msg a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}
.gb-code-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
}
html.dark .gb-code-foot {
  color: #94a3b8;
}
.gb-code-foot button,
.gb-code-foot a {
  background: none;
  border: 0;
  padding: 0;
  color: #0f766e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
html.dark .gb-code-foot button,
html.dark .gb-code-foot a {
  color: #2dd4bf;
}
.gb-code-foot button:hover,
.gb-code-foot a:hover {
  text-decoration: underline;
}
/* 覆盖 brand-fix.js 的 .text-primary-600 深色文字规则，使「立即免费注册」与「验证码登录」按钮完全一致 */
a.gb-login-signup,
html:not(.dark) a.gb-login-signup,
html.dark a.gb-login-signup {
  background: #0d9488 !important;
  color: #ffffff !important;
  border: 0 !important;
  transition: background-color 0.15s ease;
}
a.gb-login-signup:hover,
html:not(.dark) a.gb-login-signup:hover,
html.dark a.gb-login-signup:hover {
  background: #0f766e !important;
  color: #ffffff !important;
}
