.v2-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(72, 127, 255, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 184, 242, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3ff 100%);
  color: #1d2b44;
}

.v2-auth-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 48px 20px;
}

.v2-auth-shell__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
}

.v2-auth-shell__glow--one {
  top: -180px;
  left: -100px;
  background: rgba(72, 127, 255, 0.2);
}

.v2-auth-shell__glow--two {
  right: -120px;
  bottom: -180px;
  background: rgba(0, 184, 242, 0.16);
}

.v2-auth-container {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-auth-stack {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.v2-auth-stack--narrow {
  max-width: 520px;
}

.v2-auth-logo img {
  max-height: 92px;
  width: auto;
}

.v2-auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(142, 156, 186, 0.26);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(23, 43, 77, 0.12);
  padding: 28px;
}

.v2-auth-card--compact {
  max-width: 548px;
}

.v2-auth-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.v2-auth-card__header h1,
.v2-auth-copy h1 {
  font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
  line-height: 1.08;
  font-weight: 700;
  color: #162744;
  margin-bottom: 10px;
}

.v2-auth-card__header p,
.v2-auth-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #57657d;
}

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

.v2-auth-form--inline {
  width: 100%;
}

.v2-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.v2-auth-field label,
.v2-auth-label-row label {
  font-size: 1rem;
  font-weight: 600;
  color: #3f4b60;
}

.v2-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-auth-label-row a,
.v2-auth-footnote a,
.v2-auth-secondary-link a,
.v2-auth-checkbox a {
  color: #0b66a6;
  font-weight: 600;
  text-decoration: none;
}

.v2-auth-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px;
  background: #f7f9ff;
  border: 1px solid #c8d2e3;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.v2-auth-input-group:focus-within {
  border-color: #487fff;
  box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.14);
  background: #fff;
}

.v2-auth-input-group.is-invalid {
  border-color: #ef4444;
  background: #fff7f7;
}

.v2-auth-input-group.is-valid {
  border-color: #34c38f;
  background: #fbfffd;
}

.v2-auth-input-group input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2e45;
  font-size: 1rem;
  padding: 16px 0;
  min-width: 0;
}

.v2-auth-input-group input::placeholder {
  color: #92a0b6;
}

.v2-auth-input-icon,
.v2-auth-toggle,
.v2-auth-state-icon {
  color: #7d8898;
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.v2-auth-state-icon {
  display: none;
}

.v2-auth-state-icon__invalid {
  display: none;
}

.v2-auth-input-group.is-valid .v2-auth-state-icon {
  display: inline-flex;
  color: #1fb981;
}

.v2-auth-input-group.is-valid .v2-auth-state-icon__invalid {
  display: none;
}

.v2-auth-input-group.is-invalid .v2-auth-state-icon {
  display: inline-flex;
  color: #d92d20;
}

.v2-auth-input-group.is-invalid .v2-auth-state-icon__valid {
  display: none;
}

.v2-auth-input-group.is-invalid .v2-auth-state-icon__invalid {
  display: inline-flex;
}

.v2-auth-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.v2-auth-toggle.is-active {
  color: #0b66a6;
}

.v2-auth-field-error {
  margin: 0;
  font-size: 0.95rem;
  color: #d92d20;
}

.v2-auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  color: #49566c;
  cursor: pointer;
}

.v2-auth-checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 4px;
  border: 1.5px solid #9aabc3;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.v2-auth-checkbox input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
  margin-top: -1px;
}

.v2-auth-checkbox input:hover {
  border-color: #487fff;
}

.v2-auth-checkbox input:focus {
  outline: 0;
  border-color: #487fff;
  box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.14);
}

.v2-auth-checkbox input:checked {
  background: #0e6aa8;
  border-color: #0e6aa8;
}

.v2-auth-checkbox input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.v2-auth-checkbox.is-invalid input {
  border-color: #ef4444;
  background: #fff7f7;
}

.v2-auth-checkbox span {
  line-height: 1.6;
}

.v2-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #0e6aa8 0%, #095f98 100%);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(14, 106, 168, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v2-auth-button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(14, 106, 168, 0.2);
}

.v2-auth-divider {
  height: 1px;
  background: #d9e0ec;
  margin: 20px 0 0;
}

.v2-auth-footnote,
.v2-auth-secondary-link {
  margin: 18px 0 0;
  text-align: center;
  color: #5f6d83;
  font-size: 1rem;
}

.v2-auth-secondary-link a i {
  vertical-align: middle;
}

.v2-auth-badge,
.v2-auth-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
}

.v2-auth-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: rgba(72, 127, 255, 0.1);
  color: #0e6aa8;
  font-size: 1.6rem;
}

.v2-auth-status-pill {
  margin: 0 auto 16px;
  background: #e9fbf4;
  color: #1aa66f;
}

.v2-auth-copy {
  text-align: center;
}

.v2-auth-inline-note,
.v2-auth-inline-panel {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 16px 18px;
}

.v2-auth-inline-note {
  margin-bottom: 18px;
  background: #eff6ff;
  color: #1557a0;
}

.v2-auth-inline-panel {
  margin-top: 18px;
  background: #eff6ff;
  border: 1px solid #cfe1ff;
  color: #1557a0;
}

.v2-auth-inline-panel p,
.v2-auth-inline-note span {
  margin: 0;
  line-height: 1.5;
}

.v2-auth-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.v2-auth-alert i {
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 2px;
}

.v2-auth-alert strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.v2-auth-alert p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.55;
}

.v2-auth-alert--error {
  background: #fff1f1;
  border-color: #f7b0ab;
  color: #b42318;
}

.v2-auth-alert--success {
  background: #ecfdf3;
  border-color: #a6f4c5;
  color: #027a48;
}

.v2-auth-recaptcha {
  overflow-x: auto;
}

.v2-auth-optional {
  color: #8b97aa;
  font-weight: 500;
}

.v2-password-meter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: -4px;
}

.v2-password-meter__header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #49566c;
  font-size: 0.98rem;
}

.v2-password-meter__header strong {
  color: #172b4d;
}

.v2-password-meter__bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.v2-password-meter__bars span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #c9d2de;
}

.v2-password-meter__bars span.is-active {
  background: #12b981;
}

.v2-password-requirements {
  border-top: 1px solid #dde4f0;
  padding-top: 16px;
}

.v2-password-requirements h6 {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 700;
  color: #4f5d73;
}

.v2-password-requirement {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6c798f;
  margin-bottom: 10px;
}

.v2-password-requirement i {
  color: #9aa7b9;
}

.v2-password-requirement.is-met {
  color: #16a34a;
}

.v2-password-requirement.is-met i {
  color: #16a34a;
}

@media (max-width: 767px) {
  .v2-auth-shell {
    padding: 32px 16px;
  }

  .v2-auth-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .v2-auth-card__header h1,
  .v2-auth-copy h1 {
    font-size: 2.2rem;
  }

  .v2-auth-input-group {
    min-height: 56px;
    padding: 0 14px;
  }
}
