
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.auth-body {
  background: linear-gradient(180deg,#f2f5fb 0%,#eef2fa 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-body .page-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid rgba(209,217,234,0.9);
  border-radius: 28px;
  padding: 48px 56px;
  box-shadow: 0 26px 60px rgba(15,23,42,0.12);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: stretch;
}

.auth-card--login { gap: 24px; }
.auth-card--signup { gap: 28px; }

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.auth-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(27,99,230,0.18));
}

.auth-brand-name {
  font-family: 'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #195a86;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-subtitle {
  margin: 0;
  text-align: center;
  color: #61738f;
  font-size: 1rem;
}

.auth-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-message {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  background: #e0f2fe;
  color: #195a86;
}

.auth-message.success { background:#dcfce7; color:#15803d; }
.auth-message.error { background:#fee2e2; color:#b91c1c; }
.auth-message.warning { background:#fef3c7; color:#b45309; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-weight: 600;
  color: #0f172a;
}

.auth-input {
  width: 100%;
  border: 1px solid #ccd7eb;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: #f9fbff;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-input:focus {
  border-color: #2b6cf3;
  box-shadow: 0 0 0 4px rgba(43,108,243,0.18);
}

.auth-terms {
  margin: -4px 0 0;
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  appearance: none;
}

.auth-button.primary {
  color: #fff;
  background: linear-gradient(135deg,#2a7bff 0%,#1d52f3 60%,#1540d1 100%);
  box-shadow: 0 14px 30px rgba(29,82,243,0.32), inset 0 1px 0 rgba(255,255,255,0.35);
}

.auth-button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg,rgba(255,255,255,0.25),rgba(255,255,255,0));
  opacity: 0.9;
  mix-blend-mode: screen;
}

.auth-button.primary:hover {
  filter: brightness(.98);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(29,82,243,0.35), inset 0 1px 0 rgba(255,255,255,0.45);
}

.auth-button.primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 24px rgba(29,82,243,0.32), inset 0 2px 6px rgba(0,0,0,0.18);
  filter: brightness(.96);
}

.auth-button.primary:focus-visible {
  outline: 3px solid rgba(45,121,255,0.35);
  outline-offset: 3px;
}

.auth-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #64748b;
}

.auth-switch-link {
  color: #1b63e6;
  font-weight: 600;
}

.auth-switch-link:hover { text-decoration: underline; }

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-inline-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #ccd7eb;
  background: #f5f7ff;
  color: #1b63e6;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease;
}

.auth-inline-pill:hover { background: #e6edff; }

.auth-footnote {
  margin: -8px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .auth-body .page-wrapper {
    padding: 28px 16px;
  }
  .auth-card {
    padding: 32px 24px;
    border-radius: 22px;
  }
  .auth-logo {
    width: 64px;
    height: 64px;
  }
}
