@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --blue: #0d6efd;
  --blue-2: #0f82ff;
  --gold: #f0b449;
  --text: #f4f8ff;
  --muted: #b0bfd0;
  --border: rgba(112, 174, 255, .5);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #020814;
  color: var(--text);
}

.login-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    url("background-brava.png") center center / cover no-repeat fixed;
}

.screen-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(0, 6, 15, .03) 0%,
      rgba(0, 6, 15, .04) 45%,
      rgba(0, 6, 15, .10) 70%,
      rgba(0, 6, 15, .24) 100%
    );
}

.login-panel {
  width: min(100%, 420px);
  margin-left: auto;
  margin-right: clamp(22px, 5vw, 95px);
  padding: 30px 28px;
  border-radius: 20px;
  border: 1px solid rgba(72, 153, 255, .75);
  background:
    linear-gradient(155deg, rgba(7, 31, 64, .16), rgba(2, 14, 31, .28));
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .34),
    0 0 25px rgba(0, 118, 255, .14),
    inset 0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.035em;
}

.login-subtitle {
  color: var(--muted);
  font-size: .9rem;
}

.custom-field {
  overflow: hidden;
  min-height: 54px;
  border-radius: 11px;
  border: 1px solid rgba(160, 187, 219, .42);
  background: rgba(0, 8, 20, .28);
  transition: .2s ease;
}

.custom-field:focus-within {
  border-color: rgba(27, 145, 255, .95);
  box-shadow:
    0 0 0 3px rgba(13, 110, 253, .08),
    0 0 18px rgba(0, 126, 255, .14);
}

.custom-field .input-group-text,
.custom-field .form-control,
.toggle-password {
  border: 0 !important;
  background: transparent !important;
  color: #fff;
}

.custom-field .input-group-text {
  padding-left: 16px;
  color: #e3eaf5;
  font-size: 1.05rem;
}

.custom-field .form-control {
  box-shadow: none !important;
  font-size: .93rem;
}

.custom-field .form-control::placeholder {
  color: #c3ccda;
}

.toggle-password {
  padding-right: 16px;
  color: #f4f7fb !important;
}

.form-check-label,
.forgot-link {
  font-size: .78rem;
}

.form-check-input {
  background-color: rgba(0, 0, 0, .12);
  border-color: rgba(255, 255, 255, .42);
}

.form-check-input:checked {
  background-color: var(--blue);
  border-color: var(--blue);
}

.forgot-link {
  color: #18a0ff;
  text-decoration: none;
}

.forgot-link:hover {
  color: #7bc8ff;
}

.btn-login {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(100deg, #0967d9, #0d6efd, #0756bf);
  box-shadow: 0 0 20px rgba(0, 109, 255, .22);
}

.btn-login:hover {
  color: #fff;
  filter: brightness(1.08);
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #b6c1ce;
}

.separator span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25));
}

.separator span:last-child {
  background: linear-gradient(90deg, rgba(255,255,255,.25), transparent);
}

.btn-request {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #f6f9fd;
  border: 1px solid rgba(170, 195, 224, .36);
  background: rgba(1, 10, 23, .18);
}

.btn-request:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(244, 180, 73, .06);
}

.brand-message {
  margin-top: 24px;
  color: #aebdce;
  font-size: .72rem;
}

.brand-message strong {
  color: #149cff;
  font-weight: 600;
}

@media (max-width: 1199.98px) {
  .login-panel {
    margin-right: 32px;
  }
}

@media (max-width: 991.98px) {
  .screen-shade {
    background: rgba(0, 7, 18, .28);
  }

  .login-panel {
    margin: 25px auto;
  }
}

@media (max-width: 575.98px) {
  .login-page {
    background-position: 42% center;
    background-attachment: scroll;
  }

  .login-panel {
    width: calc(100% - 28px);
    padding: 26px 20px;
    border-radius: 17px;
    background:
      linear-gradient(155deg, rgba(7, 31, 64, .28), rgba(2, 14, 31, .38));
    backdrop-filter: blur(10px);
  }

  .login-title {
    font-size: 1.55rem;
  }

  .form-check-label,
  .forgot-link {
    font-size: .72rem;
  }
}
