
.fm-auth-page {
  background: #f5f8ff;
  color: #10264d;
  font-family: "DM Sans", Arial, sans-serif;
}

.fm-auth-page * {
  box-sizing: border-box;
}

.fm-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 780px;
}

.fm-auth-showcase {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #062b78, #0754d7 60%, #04a9a5);
  color: #fff;
}

.fm-auth-showcase::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 90px solid rgba(255,255,255,.06);
  border-radius: 50%;
  right: -200px;
  top: -150px;
}

.fm-auth-showcase::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 65px solid rgba(255,255,255,.05);
  border-radius: 50%;
  left: -170px;
  bottom: -170px;
}

.fm-auth-showcase-inner {
  position: relative;
  z-index: 1;
  width: min(620px, 85%);
  margin: 0 auto;
  padding: 70px 0;
}

.fm-auth-eyebrow {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 30px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.fm-auth-showcase h1 {
  margin: 0 0 25px;
  font-size: clamp(45px, 4.5vw, 70px);
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 900;
}

.fm-auth-showcase-inner > p {
  font-size: 21px;
  line-height: 1.8;
  max-width: 550px;
  margin-bottom: 40px;
}

.fm-auth-features {
  display: grid;
  gap: 17px;
}

.fm-auth-features > div {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
}

.fm-auth-features span {
  font-size: 27px;
}

.fm-auth-showcase-bottom {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 65px;
}

.fm-auth-showcase-bottom strong {
  font-size: 24px;
  letter-spacing: 2px;
}

.fm-auth-showcase-bottom span {
  font-size: 16px;
  opacity: .85;
}

.fm-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 35px;
}

.fm-auth-card {
  width: min(510px, 100%);
}

.fm-auth-back {
  display: inline-block;
  margin-bottom: 30px;
  color: #0754d7;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.fm-auth-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf3ff;
  border-radius: 20px;
  font-size: 35px;
  margin-bottom: 25px;
}

.fm-auth-label {
  display: block;
  color: #047bc9;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.fm-auth-card h2 {
  margin: 0 0 12px;
  font-size: clamp(33px, 3vw, 43px);
  line-height: 1.2;
  font-weight: 900;
}

.fm-auth-subtitle {
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 30px;
}

.fm-auth-alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 25px;
}

.fm-auth-alert {
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  background: #eaf3ff;
  color: #0754d7;
}

.fm-auth-alert-error {
  background: #fff0f0;
  color: #b42335;
}

.fm-auth-alert-success {
  background: #e8f8f0;
  color: #147c4d;
}

.fm-auth-alert-warning {
  background: #fff6e5;
  color: #9d6500;
}

.fm-auth-form {
  display: grid;
  gap: 22px;
}

.fm-auth-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fm-auth-field label {
  font-size: 17px;
  font-weight: 800;
}

.fm-auth-field > input,
.fm-password-wrap input {
  width: 100%;
  height: 61px;
  border: 1px solid #d3deed;
  border-radius: 12px;
  background: #fff;
  color: #10264d;
  font-family: inherit;
  font-size: 17px;
  padding: 15px 17px;
}

.fm-auth-field input:focus {
  outline: 2px solid #83b9ff;
}

.fm-password-wrap {
  position: relative;
}

.fm-password-wrap input {
  padding-right: 85px;
}

.fm-password-toggle {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  padding: 8px 10px;
  border: 0;
  background: #edf5ff;
  border-radius: 8px;
  color: #0754d7;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.fm-auth-submit {
  width: 100%;
  padding: 19px 25px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(110deg, #0754d7, #04b8a8);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease;
}

.fm-auth-submit:hover {
  transform: translateY(-2px);
}

.fm-auth-switch {
  margin: 28px 0;
  font-size: 17px;
  text-align: center;
  color: #64748b;
}

.fm-auth-switch a {
  color: #0754d7;
  font-weight: 900;
  text-decoration: none;
}

.fm-auth-security {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 12px;
  background: #eaf3ff;
}

.fm-auth-security > span {
  font-size: 22px;
}

.fm-auth-security p {
  color: #426082;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.fm-auth-password-strength {
  margin-top: -12px;
}

.fm-strength-track {
  height: 7px;
  background: #e4eaf5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 9px;
}

#passwordStrengthBar {
  width: 0%;
  height: 100%;
  background: #d94c4c;
  transition: width .2s ease, background .2s ease;
}

#passwordStrengthText {
  color: #64748b;
  font-size: 14px;
}

.fm-auth-validation {
  margin: -5px 0;
  color: #b42335;
  font-size: 15px;
  min-height: 20px;
}

@media (max-width: 900px) {
  .fm-auth-layout {
    grid-template-columns: 1fr;
  }

  .fm-auth-showcase-inner {
    width: min(700px, 90%);
  }

  .fm-auth-showcase {
    min-height: 450px;
  }

  .fm-auth-showcase-bottom {
    margin-top: 35px;
  }
}

@media (max-width: 600px) {
  .fm-auth-showcase-inner {
    padding: 50px 0;
  }

  .fm-auth-showcase h1 {
    font-size: 43px;
    letter-spacing: -1px;
  }

  .fm-auth-showcase-inner > p {
    font-size: 18px;
  }

  .fm-auth-features > div {
    font-size: 16px;
  }

  .fm-auth-form-side {
    padding: 45px 20px;
  }

  .fm-auth-card h2 {
    font-size: 34px;
  }
}
