:root {
  --primary: #0071c2;
  --primary-hover: #005999;
  --border: #bdbdbd;
  --text-dark: #1a1a1a;
  --text-light: #6b6b6b;
  --surface: #ffffff;
}

.auth-page {
  min-height: 100vh;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  background: #ffffff;
}

.auth-box {
  width: 380px;
  max-width: 92%;
  padding-bottom: 36px;
}

.auth-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.auth-subtext {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;
}

.toast {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.16);
  color: #166534;
}

.toast.error {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
}

.toast.info {
  background: rgba(0, 113, 194, 0.08);
  border-color: rgba(0, 113, 194, 0.16);
  color: #005c9d;
}

.auth-method {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.auth-method-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 12px;
}

.auth-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 118px);
  gap: 10px;
  align-items: stretch;
}

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

.auth-input {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.15);
}

.primary-btn {
  width: 100%;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.primary-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.inline-btn {
  width: auto;
  min-width: 118px;
  padding: 0 16px;
  margin-top: 0;
  flex-shrink: 0;
}

.auth-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.divider {
  display: flex;
  align-items: center;
  margin: 28px 0 22px;
  color: var(--text-light);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  margin: 0 12px;
}

.divider-tight {
  margin: 18px 0;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.social-icon {
  width: 72px;
  height: 72px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  padding: 0;
}

.social-icon svg {
  width: 26px;
  height: 26px;
}

.social-icon:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.terms {
  font-size: 13px;
  color: #555;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 26px;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #666;
}

.copyright p {
  margin: 4px 0;
}

@media (max-width: 480px) {
  .auth-page {
    padding-top: 20px;
  }

  .auth-box {
    max-width: calc(100% - 24px);
  }

  .auth-heading {
    font-size: 18px;
    letter-spacing: 1px;
    font-family: "Blue Sans", "BlinkMacSystemFont", "-apple-system", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

  .auth-inline {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 8px;
  }

  .inline-btn {
    width: 108px;
    min-width: 108px;
    padding: 0 10px;
    font-size: 14px;
  }

  .social-row {
    gap: 12px;
  }

  .social-icon {
    width: 64px;
    height: 64px;
  }
}
