/* ======================================
   AMERICAN-CREST BANK
   Registration Page Styles
====================================== */

:root {
  --bg: #0b1220;
  --panel: #101b2d;
  --card: #152238;
  --card-hover: #1b2c45;
  --primary: #0789e8;
  --primary-light: #24a4ff;
  --text: #f3f7fc;
  --muted: #98a9bf;
  --border: rgba(255, 255, 255, 0.09);
  --success: #35c99a;
  --danger: #ff7474;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at top left, #102d4b 0%, transparent 38%),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* TOPBAR */

.topbar {
  height: 72px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 15, 28, 0.96);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #0875cf, #20a5ff);
  color: white;
}

.back-home {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: 0.25s ease;
}

.back-home:hover {
  color: var(--primary-light);
}

/* PAGE LAYOUT */

.page-wrapper {
  width: min(1120px, 92%);
  margin: 45px auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}

/* INTRO PANEL */

.intro-panel {
  min-height: 650px;
  padding: 42px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(7, 35, 62, 0.93), rgba(9, 18, 32, 0.96)),
    url("bank2.jpeg") center / cover;
}

.intro-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: 15%;
  border-radius: 50%;
  border: 1px solid #50b9ff20;
  box-shadow:
    0 0 0 35px #50b9ff08,
    0 0 0 70px #50b9ff05;
  pointer-events: none;
}

.intro-content,
.intro-bottom {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #55bdff;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
}

.intro-content h1 {
  max-width: 380px;
  margin: 20px 0;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.2;
  letter-spacing: -1.4px;
}

.intro-content > p {
  max-width: 380px;
  color: #b5c5d9;
  font-size: 13px;
}

.intro-features {
  display: grid;
  gap: 25px;
  margin-top: 45px;
}

.intro-features > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid #3faeff30;
  border-radius: 12px;
  background: #0789e81a;
  color: #64c1ff;
}

.intro-features strong,
.intro-features small {
  display: block;
}

.intro-features strong {
  font-size: 12px;
  margin-bottom: 3px;
}

.intro-features small {
  font-size: 11px;
  color: var(--muted);
}

.intro-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: #a7bad0;
  font-size: 10px;
}

.intro-bottom i {
  color: #55bdff;
}

/* REGISTER PANEL */

.register-panel {
  padding: 35px;
  background: rgba(16, 27, 45, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 70px #0002;
  min-width: 0;
}

.register-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.heading-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  color: #72c8ff;
  background: #0789e820;
  border: 1px solid #0789e833;
  border-radius: 15px;
  font-size: 22px;
}

.register-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 3px;
}

.register-heading h2 {
  font-size: 25px;
  line-height: 1.3;
}

.register-heading p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

/* PROGRESS */

.progress-area {
  margin-bottom: 22px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
}

.progress-top span:last-child {
  color: #6fc5ff;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  background: #26364b;
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill {
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, #087bdb, #35b5ff);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.step-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #718198;
}

.step-indicator > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #1c2a3d;
  border: 1px solid #314158;
  border-radius: 10px;
  font-size: 11px;
  transition: 0.25s ease;
}

.step-indicator small {
  font-size: 9px;
  font-weight: 600;
}

.step-indicator.active {
  color: #8bd3ff;
}

.step-indicator.active > span,
.step-indicator.completed > span {
  background: #087bdb25;
  border-color: #0789e8;
  color: #6fc5ff;
}

.step-indicator.completed > span {
  background: #0c8d6b25;
  border-color: #35c99a;
  color: #35c99a;
}

/* DEMO NOTICE */

.demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 25px;
  border: 1px solid #0789e830;
  border-radius: 10px;
  background: #0789e812;
  color: #b6dfff;
  font-size: 10px;
}

.demo-notice i {
  margin-top: 2px;
  color: #60bfff;
}

/* FORM STEPS */

.form-step {
  display: none;
  animation: slideIn 0.3s ease both;
}

.form-step.active {
  display: block;
}

.step-title {
  margin-bottom: 23px;
}

.step-title h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.step-title p {
  color: var(--muted);
  font-size: 11px;
}

/* FORM GRID */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 13px;
}

.form-group {
  min-width: 0;
  margin-bottom: 17px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #dce6f2;
  font-size: 11px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #7489a4;
  font-size: 12px;
  pointer-events: none;
  z-index: 2;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 13px 0 38px;
  outline: none;
  border: 1px solid #293a51;
  border-radius: 9px;
  background: #0c1727;
  color: var(--text);
  font-size: 11px;
  transition: 0.25s ease;
}

/* ===== DATE OF BIRTH FIX ===== */
.input-wrap input[type="date"] {
  color: var(--text);
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
}

.input-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.65);
  opacity: 0.75;
  cursor: pointer;
  margin-right: 2px;
  position: relative;
  z-index: 1;
}

.input-wrap input[type="date"]::-webkit-datetime-edit {
  color: var(--text);
  padding: 0;
}

.input-wrap input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  color: var(--text);
}

.input-wrap input[type="date"]::-webkit-datetime-edit-text {
  color: #718198;
  padding: 0 2px;
}

.input-wrap input[type="date"]::-webkit-datetime-edit-month-field,
.input-wrap input[type="date"]::-webkit-datetime-edit-day-field,
.input-wrap input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
}

.input-wrap input[type="date"]:invalid,
.input-wrap input[type="date"]:placeholder-shown {
  color: #718198;
}
/* ===== END DATE FIX ===== */

.input-wrap input::placeholder {
  color: #718198;
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
}

.select-wrap::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 9px;
  color: #7e91a9;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: #0789e8;
  box-shadow: 0 0 0 3px #0789e81a;
}

.input-wrap input.invalid,
.input-wrap select.invalid {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 5px;
  color: var(--danger);
  font-size: 10px;
}

.field-error:empty {
  display: none;
}

.step-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  margin-top: 12px;
  background: #ffffff05;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 10px;
}

.step-tip i {
  color: #6ec5ff;
  margin-top: 2px;
}

/* PREFERENCES */

.preference-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  margin: 8px 0 18px;
  background: #0789e810;
  border: 1px solid #0789e828;
  border-radius: 12px;
}

.preference-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #6dc5ff;
  background: #0789e822;
}

.preference-box strong {
  font-size: 12px;
}

.preference-box p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

/* REVIEW */

.review-card {
  padding: 17px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c1727;
}

.review-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.review-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #0789e822;
  color: #68c2ff;
}

.review-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 10px;
}

.review-heading strong {
  font-size: 11px;
}

.edit-link {
  border: none;
  background: transparent;
  color: #60bfff;
  font-size: 10px;
  font-weight: 700;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 0;
  font-size: 10px;
}

.review-row span {
  color: var(--muted);
}

.review-row strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
  color: #e5edf6;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: #c0cddd;
  font-size: 10px;
}

.check-row input {
  accent-color: var(--primary);
  margin-top: 4px;
}

/* BUTTONS */

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(120deg, #087bdb, #079cf3);
  box-shadow: 0 6px 20px #0789e820;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #0789e830;
}

.btn-back {
  color: #c4d0df;
  background: transparent;
  border-color: #34455b;
}

.btn-back:hover:not(:disabled) {
  background: #ffffff08;
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.form-actions .btn-primary {
  min-width: 145px;
}

/* SUCCESS */

.success-step {
  text-align: center;
  padding: 35px 0 10px;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  margin: 0 auto 25px;
  border: 1px solid #35c99a55;
  border-radius: 50%;
  background: #35c99a18;
  color: var(--success);
  font-size: 29px;
  box-shadow: 0 0 0 10px #35c99a08;
}

.success-step h3 {
  font-size: 26px;
  margin: 10px 0;
}

.success-step > p {
  max-width: 360px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 12px;
}

.success-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  margin-bottom: 22px;
  text-align: left;
  color: #b7dfff;
  background: #0789e812;
  border: 1px solid #0789e830;
  border-radius: 10px;
  font-size: 10px;
}

.success-summary i {
  margin-top: 2px;
}

.full-btn {
  width: 100%;
}

.restart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.restart-btn:hover {
  color: white;
}

/* FOOTER */

.register-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #7f91a8;
  font-size: 9px;
}

.register-footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.register-footer i {
  color: #55bdff;
}

.register-footer a:hover {
  color: #6ec5ff;
}

/* ANIMATIONS */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 30px auto;
  }

  .intro-panel {
    min-height: auto;
    padding: 30px;
  }

  .intro-content h1 {
    max-width: 500px;
    font-size: 34px;
  }

  .intro-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

  .intro-features > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .intro-bottom {
    margin-top: 30px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .page-wrapper {
    width: 100%;
    margin: 0;
    gap: 0;
  }

  .intro-panel {
    display: none;
  }

  .register-panel {
    min-height: calc(100vh - 64px);
    padding: 25px 20px 22px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .register-heading {
    gap: 12px;
    margin-bottom: 25px;
  }

  .heading-icon {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .register-heading h2 {
    font-size: 22px;
  }

  .register-heading p {
    font-size: 10px;
  }

  .step-indicator > span {
    width: 29px;
    height: 29px;
  }

  .step-indicator small {
    font-size: 8px;
  }

  .demo-notice {
    padding: 11px;
    font-size: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-title h3 {
    font-size: 17px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .input-wrap input,
  .input-wrap select {
    height: 47px;
    font-size: 12px;
  }

  .form-actions {
    margin-top: 25px;
  }

  .form-actions .btn {
    flex: 1;
    padding: 12px 10px;
  }

  .register-footer {
    font-size: 9px;
  }

  .review-card {
    padding: 13px;
  }

  .review-row {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .register-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .register-heading h2 {
    font-size: 20px;
  }

  .register-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}