body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6f9;
  display: flex;
  justify-content: center;
  padding: 15px;
}

.container {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  height: 5px;
  background: #eee;
  border-radius: 4px;
  margin: 18px 0;
}

.progress {
  height: 100%;
  width: 25%;
  background: #d60000;
  border-radius: 4px;
  transition: 0.3s;
}

.step { display: none; }
.step.active { display: block; }

.icon-circle {
  width: 70px;
  height: 70px;
  background: #3daedb;
  color: red;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  margin: 10px auto;
}

h2 { text-align: center; margin-bottom: 20px; }

label {
  font-weight: 600;
  margin-top: 14px;
  display: block;
  font-size: 14px;
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 6px;
  font-size: 14px;
}

.account-type {
  display: flex;
  gap: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
}

.account-type.selected {
  border: 2px solid #d60000;
  background: #fceaea;
}

.password-field {
  position: relative;
}

.password-field i {
  position: absolute;
  right: 12px;
  top: 14px;
  cursor: pointer;
  color: #777;
}

.strength-bar {
  height: 5px;
  background: #eee;
  border-radius: 4px;
  margin-top: 10px;
}

#strengthFill {
  height: 100%;
  width: 0%;
  background: green;
  border-radius: 4px;
  transition: 0.3s;
}

.requirements {
  list-style: none;
  padding: 0;
  font-size: 13px;
  margin-top: 10px;
}

.requirements li {
  margin-bottom: 5px;
  color: #999;
}

.requirements li.valid {
  color: green;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

button {
  padding: 12px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
}

.next, .submit {
  background: #d60000;
  color: #fff;
}

.prev {
  background: #eee;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }
}


.password-field {
  position: relative;
}

.password-field input {
  padding-right: 40px;
}

.password-field i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
}


.password-field {
  position: relative;
}

.password-field input {
  padding-right: 45px;
}

.password-field button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
}


/* =========================
   MOBILE RESPONSIVE FIX
   ========================= */

@media (max-width: 768px){

  body{
    padding:12px;
    align-items:flex-start;
  }

  .container{
    max-width:100%;
    padding:22px;
    border-radius:12px;
  }

  h2{
    font-size:20px;
  }

  label{
    font-size:13px;
  }

  input, select{
    padding:11px;
    font-size:14px;
  }

  .icon-circle{
    width:60px;
    height:60px;
    font-size:22px;
  }

  /* ACCOUNT TYPE STACK */
  .account-type{
    flex-direction:column;
    gap:6px;
    font-size:13px;
  }

  /* BUTTONS STACK ON MOBILE */
  .buttons{
    flex-direction:column;
    gap:10px;
  }

  button{
    width:100%;
    padding:13px;
    font-size:15px;
  }

  .prev{
    order:1;
  }

  .next,
  .submit{
    order:2;
  }

  /* PASSWORD ICON */
  .password-field button,
  .password-field i{
    right:12px;
    font-size:16px;
  }

}

/* EXTRA SMALL PHONES */
@media (max-width: 400px){

  .container{
    padding:18px;
  }

  h2{
    font-size:18px;
  }

  .icon-circle{
    width:55px;
    height:55px;
    font-size:20px;
  }

  input, select{
    padding:10px;
    font-size:13px;
  }

  .requirements{
    font-size:12px;
  }

  button{
    padding:12px;
    font-size:14px;
  }

}



/* =========================
   LOADING SCREEN
========================= */

.loading-screen{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#f4f6f9;
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

/* LOADER CENTER */

.loader-container{
    text-align:center;
}

/* ROTATING RING */

.ring-loader{
    position:relative;
    width:90px;
    height:90px;
    margin:auto;
}

.ring{
    width:100%;
    height:100%;
    border-radius:50%;
    border:6px solid transparent;
    border-top:6px solid #c0392b;
    border-right:6px solid #5dade2;
    border-bottom:6px solid #48c9b0;
    animation:loaderSpin 1.2s linear infinite;
}

/* CENTER DOT */

.loader-dot{
    position:absolute;
    top:50%;
    left:50%;
    width:18px;
    height:18px;
    background:linear-gradient(45deg,#c0392b,#5dade2);
    border-radius:50%;
    transform:translate(-50%,-50%);
}

/* LOADING TEXT */

.loading-text{
    margin-top:20px;
    font-size:18px;
    letter-spacing:2px;
    font-weight:500;
    background:linear-gradient(90deg,#c0392b,#5dade2);
    -webkit-background-cli:text;
    -webkit-text-fill-color:transparent;
}

/* ROTATION ANIMATION */

@keyframes loaderSpin{
    0%{ transform:rotate(0deg); }
    100%{ transform:rotate(360deg); }
}
