/* === AMT 账号页样式（登录 / 注册页 与 我的账户页共用） === */

.auth-body {
  background: var(--color-bg);
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--space-lg) var(--space-md);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #232323;
  border: 1px solid #333333;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-lg);
}

.auth-card-wide {
  max-width: 900px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  color: var(--color-white);
}

.auth-subtitle {
  font-size: 14px;
  line-height: 1.7;
  color: #9A9A9A;
  margin: 0 0 var(--space-md) 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: #C9C9C9;
  margin-top: var(--space-sm);
}

.auth-phone-row,
.auth-code-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-xs);
}

.auth-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #3A3A3A;
  border-radius: var(--radius-sm);
  background: #1C1C1C;
  color: #C9C9C9;
  font-family: var(--font-mono);
  font-size: 14px;
}

.auth-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #3A3A3A;
  border-radius: var(--radius-sm);
  background: #1C1C1C;
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color var(--transition-fast);
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.auth-input::placeholder {
  color: #6B6B6B;
  font-family: var(--font-sans);
}

.auth-btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.auth-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.auth-btn-primary {
  margin-top: var(--space-md);
  background: var(--color-primary);
  color: #1C1C1C;
}

.auth-btn-secondary {
  background: #2E2E2E;
  color: #E4E4E4;
  border: 1px solid #3A3A3A;
}

.auth-btn-danger {
  background: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.auth-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  font-size: 13px;
  color: #9A9A9A;
  line-height: 1.6;
  cursor: pointer;
}

.auth-consent input {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.auth-message {
  min-height: 20px;
  margin: var(--space-sm) 0 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #9A9A9A;
}

.auth-message-error {
  color: var(--color-error);
}

.auth-message-ok {
  color: #7FB58A;
}

.auth-footnote {
  margin: var(--space-md) 0 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #7F848E;
}

.auth-section-title {
  margin: var(--space-lg) 0 var(--space-xs) 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.auth-profile {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  font-size: 14px;
}

.auth-profile dt {
  color: #9A9A9A;
}

.auth-profile dd {
  margin: 0;
  font-family: var(--font-mono);
  color: #E4E4E4;
}

.auth-table-wrap {
  overflow-x: auto;
  border: 1px solid #333333;
  border-radius: var(--radius-md);
}

.auth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.auth-table th,
.auth-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #2E2E2E;
  white-space: nowrap;
}

.auth-table th {
  background: #1C1C1C;
  color: #C9C9C9;
  font-weight: 600;
}

.auth-table td {
  color: #B9B9B9;
  font-family: var(--font-mono);
}

.auth-table tr:last-child td {
  border-bottom: none;
}

.auth-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

@media (max-width: 640px) {
  .auth-card {
    padding: var(--space-md) var(--space-sm);
  }

  .auth-code-row {
    flex-direction: column;
  }

  .auth-profile {
    grid-template-columns: 1fr;
  }
}
