.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.14), transparent 32%),
    linear-gradient(180deg, #f5f7fb 0%, #eef3f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.auth-card::before {
  content: "Secure Exabay account";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-card h1 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.auth-card h2 {
  margin: 28px 0 12px;
  color: #172554;
  font-size: 20px;
  font-weight: 800;
}

.auth-card p {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.65;
}

.auth-card form {
  margin: 0;
}

.auth-card form p {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  margin-bottom: 7px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="url"],
.auth-card input[type="tel"],
.auth-card select,
.auth-card textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.auth-card textarea {
  border-radius: 8px;
  min-height: 110px;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
  background: #ffffff;
}

.auth-card .helptext {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.auth-card ul.errorlist {
  margin: 0 0 12px;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #14b8a6 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 16px 30px rgba(30, 58, 138, 0.28);
}

.btn-secondary {
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
  border-color: rgba(30, 58, 138, 0.12);
}

.btn-secondary:hover {
  background: rgba(30, 58, 138, 0.12);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.16);
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-google {
  width: 100%;
  background: #ffffff;
  color: #172554;
  border-color: #e2e8f0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.btn-google:hover {
  border-color: #14b8a6;
  background: #f8fafc;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.auth-links a {
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.auth-error {
  padding: 13px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626 !important;
  font-weight: 800;
}

.email-option,
.connected-account {
  display: flex !important;
  gap: 11px;
  align-items: flex-start;
  padding: 13px;
  margin-bottom: 10px !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.email-option:hover,
.connected-account:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.email-option input,
.connected-account input {
  margin-top: 4px;
}

.email-option strong,
.connected-account strong {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button-group {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.connected-accounts,
.social-providers {
  display: grid;
  gap: 10px;
}

@media (max-width: 520px) {
  .auth-page {
    min-height: calc(100vh - 88px);
    padding: 30px 12px;
    align-items: flex-start;
  }

  .auth-card {
    padding: 26px 18px;
  }

  .auth-card h1 {
    font-size: 24px;
  }

  .auth-links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
  }
}