/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════
   BODY
═══════════════════════════════════════ */
body {
  background:
    radial-gradient(ellipse 900px 600px at 5% 0%, rgba(6, 69, 84, .13) 0%, transparent 60%),
    radial-gradient(ellipse 800px 550px at 96% 8%, rgba(237, 115, 38, .10) 0%, transparent 55%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(6, 69, 84, .07) 0%, transparent 55%),
    #f0f4f7;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page-form {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
}

/* ═══════════════════════════════════════
   CARD
═══════════════════════════════════════ */
.login_form {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 22px;
  padding: 2.6rem 2.2rem;
  border: 1px solid rgba(6, 69, 84, .10);
  box-shadow:
    0 2px 4px rgba(2, 8, 23, .04),
    0 8px 20px rgba(2, 8, 23, .07),
    0 28px 55px rgba(2, 8, 23, .09);
  animation: cardIn .55s cubic-bezier(.22, .68, 0, 1.15) both;
  position: relative;
  overflow: hidden;
}

/* top accent stripe */

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Modal variant ── */
.modal_login_form {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

/* ═══════════════════════════════════════
   HEADING & SUBTITLE
═══════════════════════════════════════ */
.login_form h3 {
  font-size: 1.55rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -.4px;
  color: #064554;
  line-height: 1.2;
  margin-bottom: .35rem;
}

.login_form p {
  text-align: center;
  font-size: .9rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   SOCIAL LOGIN OPTIONS
═══════════════════════════════════════ */
.login_form .login_option {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: .65rem;
  margin-top: 1.4rem;
}

.login_form .login_option .option {
  width: 100%;
}

.login_form .login_option .option a {
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #f8f9fc;
  border: 1.5px solid #e8edf3;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: .88rem;
  font-weight: 600;
  transition: all .22s ease;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* shimmer on hover */
.login_form .login_option .option a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

.login_form .login_option .option a:hover::after {
  transform: translateX(100%);
}

.login_form .login_option .option a:hover {
  background: #f1f4f9;
  border-color: rgba(6, 69, 84, .25);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 8, 23, .08);
}

.login_form .login_option .option a:active {
  transform: translateY(0);
  box-shadow: none;
}

.login_form .login_option .option a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Facebook */
.login_form .login_option .option .facebook {
  /* background: #f0f2f9; */
  border-color: #dde2f0;
  /* color: #3b5998; */
}

.login_form .login_option .option .facebook:hover {
  /* background: #e8ecf7; */
  border-color: #3b5998;
}

/* ═══════════════════════════════════════
   SEPARATOR
═══════════════════════════════════════ */
.login_form .separator {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.3rem 0;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3px;
}

.login_form .separator::before,
.login_form .separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* override old ::after-only separator */
.login_form .separator span {
  background: transparent;
  padding: 0;
  position: static;
  z-index: auto;
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   INPUT BOXES
═══════════════════════════════════════ */
form .input_box {
  position: relative;
  margin-bottom: .1rem;
}

form .input_box label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: #064554;
  letter-spacing: .1px;
}
form .input_box input {
  margin-bottom: 7px !important;
}
form .input_box input,
form .input_box select {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  font-family: inherit;
  font-size: .93rem;
  color: #0f172a;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* Select polish (custom arrow + nicer placeholder color) */
form .input_box select {
  padding-right: 44px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

form .input_box select:required:invalid {
  color: #94a3b8;
}

form .input_box select option {
  color: #0f172a;
}

form .input_box input::placeholder {
  color: #b0bec5;
  font-size: .88rem;
}

form .input_box input:focus,
form .input_box select:focus {
  border-color: #064554;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(6, 69, 84, .10);
}

form .input_box input:hover:not(:focus),
form .input_box select:hover:not(:focus) {
  border-color: rgba(6, 69, 84, .30);
}

/* ── Password row ── */
form .input_box .password_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .45rem;
}

form .input_box .password_title label {
  margin-bottom: 0;
}

/* ── Password toggle icon ── */
.input_box .toggle-password {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(calc(-50% + 11px));
  cursor: pointer;
  color: #94a3b8;
  font-size: .88rem;
  transition: color .2s ease;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}

.input_box .toggle-password:hover {
  color: #064554;
}

/* ═══════════════════════════════════════
   LINKS
═══════════════════════════════════════ */
.forget,
.sign {
  text-decoration: none;
  color: #064554;
  font-size: .8rem;
  font-weight: 600;
  transition: color .2s ease;
}

/* ═══════════════════════════════════════
   REGISTER: TERMS CHECKBOX (small font)
═══════════════════════════════════════ */
.login_form .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px 0;
}

.login_form .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #064554;
}

.login_form .form-check-input:checked {
  background-color: #064554;
  border-color: #064554;
}

.login_form .form-check-input:focus {
  border-color: #064554;
  box-shadow: 0 0 0 3px rgba(6, 69, 84, 0.18);
}

.login_form .form-check-label {
  font-size: .78rem;
  line-height: 1.35;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 768px) {

  .login_form .form-check-input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
  }

  .login_form .form-check-label {
    font-size: .74rem;
  }
}

.forget:hover,
.sign:hover {
  color: #064554;
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   SUBMIT BUTTON
═══════════════════════════════════════ */
form .subscribe-btn {
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #064554 0%, #0a5f74 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  /* letter-spacing: .4px; */
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .2rem;
  margin-bottom: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

form .subscribe-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: translateX(-100%);
  transition: transform .5s ease;
}

form .subscribe-btn:hover::before {
  transform: translateX(100%);
}

form .subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 69, 84, .28);
}

form .subscribe-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ═══════════════════════════════════════
   STAGGER ANIMATION — form children
═══════════════════════════════════════ */
.login_form>* {
  animation: fadeUp .48s ease both;
}

.login_form>*:nth-child(1) {
  animation-delay: .06s;
}

.login_form>*:nth-child(2) {
  animation-delay: .10s;
}

.login_form>*:nth-child(3) {
  animation-delay: .14s;
}

.login_form>*:nth-child(4) {
  animation-delay: .18s;
}

.login_form>*:nth-child(5) {
  animation-delay: .22s;
}

.login_form>*:nth-child(6) {
  animation-delay: .26s;
}

.login_form>*:nth-child(7) {
  animation-delay: .30s;
}

.login_form>*:nth-child(8) {
  animation-delay: .34s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 992px
═══════════════════════════════════════ */
@media (max-width: 992px) {
  .page-form {
    padding: 1.5rem 1rem;
  }

  .login_form {
    max-width: 460px;
    padding: 2.2rem 1.8rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 768px
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .page-form {
    padding: 1.2rem .9rem;
    align-items:center;
    padding-top: 1.5rem;
  }

  .modal_login_form {
    padding: 8px 0;
  }

  .login_form {
    padding: 1.8rem 1.4rem;
    border-radius: 18px;
  }

  .login_form h3 {
    font-size: 1.3rem;
  }

  .login_form .separator {
    margin: 1rem 0;
  }

  form .input_box input,
  form .input_box select {
    height: 45px;
    font-size: .9rem;
    padding: 0 12px;
    margin-bottom: 11px;
  }

  .login_form .login_option {
    gap: .55rem;
    margin-top: 1.1rem;
  }

  .login_form .login_option .option a {
    height: 45px;
    font-size: .85rem;
  }

  form .subscribe-btn {
    height: 46px;
    font-size: .9rem;
    margin-bottom: 1rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 480px
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .page-form {
    padding: 1rem .7rem;
  }

  .login_form {
    padding: 1.5rem 1.1rem;
    border-radius: 16px;
  }

  .login_form h3 {
    font-size: 1.2rem;
  }

  form .input_box label {
    font-size: .76rem;
    margin-bottom: .38rem;
  }

  form .input_box input,
  form .input_box select {
    height: 43px;
    font-size: .88rem;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .login_form .login_option .option a {
    height: 43px;
    border-radius: 10px;
  }

  form .subscribe-btn {
    height: 44px;
    font-size: .88rem;
    border-radius: 10px;
  }

  .forget,
  .sign {
    font-size: .78rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — 360px
═══════════════════════════════════════ */
@media (max-width: 360px) {
  .login_form {
    padding: 1.3rem .95rem;
  }

  .login_form h3 {
    font-size: 1.1rem;
  }

  form .input_box input,
  form .input_box select {
    height: 41px;
    font-size: .85rem;
  }

  form .subscribe-btn {
    height: 42px;
    font-size: .85rem;
  }
}