.subtitle {
  color: #5f6368;
  font-size: 14px;
  margin: 10px 0;
    font-family: Arial, sans-serif;
}

.identity-summary {
  margin: 12px 0 16px;
}

.password-only-copy {
  margin: 0 0 8px;
    font-family: Arial, sans-serif;
  color: #5f6368;
  font-size: 14px;
}

.identity-pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: Arial, sans-serif;
  background: #f2f7ff;
  border: 1px solid #dbe9f8;
  /* color: #0f3d61; */
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: grid;
  place-items: center;
  background-color: #eef3fb;
  background-image: url('4_eae2dd7eb3a55636dc2d74f4fa4c386e.svg'), radial-gradient(circle at top center, rgba(255,255,255,0.92), transparent 48%), linear-gradient(180deg, #f6f7fb 0%, #eef3fb 50%, #f8fafc 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center top, center top, center bottom;
  background-size: cover, cover, cover;
  min-height: 100vh;
  transition: background-color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #f8fbff 0%, #eef3fb 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

body.is-transitioning::before {
  opacity: 1;
}

body.is-transitioning .page,
body.is-transitioning .card,
body.is-transitioning .secondary-card {
  opacity: 0;
  transform: translateY(14px);
}

.page,
.card,
.secondary-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page {
  width: 100%;
  max-width: 480px;
  display: grid;
  gap: 16px;
  padding: 28px 20px 40px;
  justify-items: center;
}

.card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 2px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.08);
  padding: 36px 34px 28px;
}

.logo {
  display: flex;
  justify-content: left;
  align-items: left;
  gap: 6px;
  margin: 0 0 10px;
}

.logo img,
.logo svg {
  width: 110px;
  height: 30px;
  object-fit: contain;
  gap: 6px;
}

.logo-text {
  font-size: 18px;
  letter-spacing: 0.05px;
  font-weight: 600;
  color: #5f6368;
}

h1 {
  margin: 10px  2px;
  font-size: 19px;
  font-weight: 534;

  /* line-height: 1.05; */
}

.page-title {
  font-family: Arial, sans-serif;
  font-size: 24px;
  margin: 0;
}

.hidden {
  display: none !important;
}

.alert {
  margin: 16px 0 12px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  border-left: 4px solid;
  display: none;
}

.alert.show {
  display: block;
}

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: none;
  font-weight: 600;
  font-family: "segoe ui", "arial", sans-serif;
}

.form-group {
  display: grid;
 font-size: 1px;
  gap: 6px;
  margin-bottom: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
}

.email-group.shrink {
  transform: translateY(-8px) scale(0.99);
  opacity: 0.95;
}

.password-group {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
}

.password-group.active {
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}

input {
  width: 100%;
  padding: 12px 0 10px;
  border: none;
  border-bottom: 1px solid rgba(32, 33, 36, 0.28);
  font-size: 16px;
  color: #202124;
  background: transparent;
  transition: border-color 0.2s ease;
}

input::placeholder {
  color: rgba(32, 33, 36, 0.45);
}

input:focus {
  outline: none;
  border-bottom-color: #0078d4;
}

.actions {
  padding-left: 40px;
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 16px;
  
  border: none; 
  background: #0078d4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  }
.button {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 16px;
  border: none; 
  background: #0078d4;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  position: relative;
  padding-left: 40px; /* space for spinner */
}

.button:hover:not(:disabled) {
   background-color: #0675b8; /* darker blue on hover */
  transform: translateY(-1px);
}

.button.loading {
  background: #005b9f;
}



.card.loading {
  transform: translateY(-5px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.85;
}

.button-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.2s ease, margin-left 0.2s ease;
}

.button.loading .button-spinner {
  opacity: 1;
}

.helper-links {
  line-height: 1.5;
  margin-bottom: 20px;
  margin-top: 20px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #5f6368;
  font-family: Arial, sans-serif;
}

.helper-links--stacked {
  gap: 8px;
  justify-items: start;
}

.helper-links a,
.helper-links .link-button {
  color: #0067b8;
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.helper-links a:hover,
.helper-links .link-button:hover {
  text-decoration: underline;
}

.verification-hint {
  margin: 8px 0 12px;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.5;
}

.secondary-card {
  width: 100%;
  max-width: 520px;
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(32, 33, 36, 0.08);
  border-radius: 1px;
  padding: 18px 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  font-family: Arial, sans-serif;
}

.secondary-card:hover {
  background: rgba(32, 33, 36, 0.06);
  border-color: rgba(32, 33, 36, 0.14);
  transform: translateY(-1px);
}

.secondary-card a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #202124;
  text-decoration: none;
}

.secondary-card a:hover {
  text-decoration: none;
}

.secondary-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.secondary-card span {
  font-weight: 500;
  color: #202124;
  font-size: 15px;
}

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 99999;
}

body.is-transitioning .page-transition-overlay {
  opacity: 1;
  pointer-events: auto;
}

.page-transition-overlay {
  background: rgba(15, 23, 42, 0.48);
}

.page-transition-overlay .loader {
  display: grid;
  width: min(380px, calc(100% - 40px));
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(22, 28, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.page-transition-overlay .progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.page-transition-overlay .progress-fill {
  width: 22%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 120, 212, 1), rgba(0, 93, 162, 0.88));
  animation: progressGrow 1.4s ease-in-out infinite;
}

@keyframes progressGrow {
  0% {
    width: 22%;
    transform: translateX(-10%);
  }
  50% {
    width: 58%;
    transform: translateX(10%);
  }
  100% {
    width: 22%;
    transform: translateX(-10%);
  }
}

.alert.success {
  background: #e6f4ea;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert.error {
  background: #f8d7da;
  color: #842029;
  border-left-color: #842029;
  border: 1px solid #f5c2c7;
}

.alert.error.show {
  display: block;
}
