:root {
  --bhs-navy: #001d3d;
  --bhs-navy-soft: #062c54;
  --bhs-cyan: #08a9e6;
  --bhs-cyan-light: #dff6ff;
  --bhs-red: #ed1c24;
}

.account-page {
  min-height: 100vh;
  margin: 0;
  background: #fbfcfe;
  color: var(--bhs-navy);
}

.bhs-auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(16px, 3vh, 40px) clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bhs-auth-layout {
  width: min(100%, 1440px);
  min-height: min(780px, calc(100dvh - clamp(32px, 6vh, 80px)));
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: stretch;
}

.bhs-auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 48px);
}

.bhs-auth-form-wrap {
  width: min(100%, 500px);
  min-width: 0;
}

.bhs-login-logo {
  display: block;
  width: min(320px, 82%);
  height: 110px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.bhs-auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.bhs-auth-header h1 {
  margin: 0 0 10px;
  color: var(--bhs-navy);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.bhs-auth-header p {
  margin: 0;
  color: #60758c;
  font-size: 1.08rem;
}

.bhs-auth-form {
  display: grid;
  gap: 20px;
}

.bhs-auth-field .form-label {
  margin-bottom: 9px;
  color: var(--bhs-navy);
  font-size: 0.96rem;
  font-weight: 650;
}

.account-page .bhs-auth-field .form-control {
  min-height: 56px;
  padding: 13px 18px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  color: var(--bhs-navy);
  font-size: 1rem;
}

.account-page .bhs-auth-field .input-icon .form-control {
  padding-left: 50px;
}

.account-page .bhs-auth-field .pass-group .form-control {
  padding-right: 50px;
}

.account-page .bhs-auth-field .form-control::placeholder {
  color: #97a6b6;
}

.bhs-auth-field .input-icon-addon {
  left: 17px;
  right: auto;
  color: #6e8093;
  font-size: 1.25rem;
}

.bhs-auth-field .pass-group .toggle-password {
  right: 18px;
  color: #60758c;
  cursor: pointer;
}

.bhs-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #60758c;
  font-size: 0.94rem;
}

.bhs-auth-options .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  margin: 0;
}

.bhs-auth-options .form-check-input {
  margin: 0;
}

.bhs-auth-options .link-primary {
  font-weight: 600;
  text-align: right;
}

.bhs-auth-options .link-primary span {
  font-weight: 500;
}

.account-page .bhs-auth-submit {
  min-height: 56px;
  margin-top: 2px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.bhs-auth-footer {
  margin-top: 26px;
  color: #7b8b9c;
  font-size: 0.9rem;
  text-align: center;
}

.bhs-auth-visual {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dcebf3;
  border-radius: 32px;
  background: #eef8fc;
  box-shadow: 0 28px 70px rgba(0, 29, 61, 0.08);
}

.bhs-auth-visual-placeholder,
.bhs-auth-visual-image {
  width: 100%;
  height: 100%;
}

.bhs-password-modal {
  overflow: hidden;
  border: 0;
  border-top: 4px solid var(--bhs-cyan);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 29, 61, 0.24);
}

.bhs-password-modal .modal-header,
.bhs-password-modal .modal-footer {
  border-color: #e7eef4;
}

.bhs-password-modal .modal-header {
  padding: 22px 24px 16px;
}

.bhs-password-modal .modal-body {
  padding: 22px 24px;
}

.bhs-password-modal .modal-footer {
  padding: 16px 24px;
}

.bhs-password-modal .form-control {
  min-height: 52px;
  padding-right: 48px;
  border-radius: 10px;
}

.bhs-auth-header-compact h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

.bhs-reset-form {
  gap: 16px;
}

.bhs-reset-password-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bhs-auth-back-link {
  color: #60758c;
  font-weight: 600;
  text-align: center;
}

.bhs-auth-back-link:hover {
  color: var(--bhs-cyan);
}

.bhs-auth-visual-placeholder {
  background:
    radial-gradient(circle at 80% 16%, rgba(8, 169, 230, 0.12), transparent 31%),
    radial-gradient(circle at 16% 86%, rgba(0, 29, 61, 0.08), transparent 30%),
    linear-gradient(145deg, #f5fbfe 0%, #e8f6fb 100%);
}

.bhs-auth-visual-image {
  display: block;
  object-fit: cover;
  object-position: center;
}

.account-page .btn.btn-primary,
.account-page .btn-primary {
  background-color: var(--bhs-navy);
  border-color: var(--bhs-navy);
}

.account-page .btn.btn-primary:hover,
.account-page .btn.btn-primary:focus,
.account-page .btn.btn-primary:active {
  background-color: var(--bhs-cyan);
  border-color: var(--bhs-cyan);
}

.account-page .link-primary {
  color: #007eaf !important;
}

.account-page .link-primary:hover,
.account-page .link-primary:focus {
  color: var(--bhs-red) !important;
}

.account-page .form-control:focus {
  border-color: var(--bhs-cyan);
  box-shadow: 0 0 0 0.2rem rgba(8, 169, 230, 0.14);
}

.account-page .form-check-input:checked {
  background-color: var(--bhs-cyan);
  border-color: var(--bhs-cyan);
}

.account-page .alert-warning {
  color: #5c3b00;
  font-weight: 600;
}

.account-page .alert {
  margin-bottom: 26px;
  border-radius: 12px;
}

@media (max-width: 1099.98px) {
  .bhs-auth-layout {
    grid-template-columns: minmax(380px, 0.95fr) minmax(430px, 1.05fr);
    gap: 32px;
  }
}

@media (max-width: 991.98px) {
  .bhs-auth-shell {
    padding: 24px;
  }

  .bhs-auth-layout {
    width: 100%;
    min-height: calc(100vh - 48px);
    display: block;
  }

  .bhs-auth-form-panel {
    min-height: calc(100vh - 48px);
    padding: 32px 20px;
  }

  .bhs-auth-visual {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .bhs-auth-shell {
    padding: 0;
    background: #fff;
  }

  .bhs-auth-layout,
  .bhs-auth-form-panel {
    min-height: 100vh;
  }

  .bhs-auth-form-panel {
    align-items: flex-start;
    padding: 48px 24px 32px;
  }

  .bhs-login-logo {
    width: min(270px, 82%);
    height: 96px;
    margin-bottom: 16px;
  }

  .bhs-auth-header {
    margin-bottom: 32px;
  }

  .bhs-auth-form {
    gap: 20px;
  }

  .bhs-auth-options {
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
  }

  .bhs-auth-options .link-primary span {
    display: inline;
  }

  .bhs-auth-footer {
    margin-top: 32px;
  }
}

@media (max-width: 575.98px) {
  .bhs-reset-password-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .bhs-auth-shell {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .bhs-auth-layout {
    min-height: calc(100dvh - 24px);
  }

  .bhs-auth-form-panel {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .bhs-login-logo {
    width: 250px;
    height: 78px;
    margin-bottom: 10px;
  }

  .bhs-auth-header {
    margin-bottom: 18px;
  }

  .bhs-auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

  .bhs-auth-header p {
    font-size: 0.96rem;
  }

  .bhs-auth-form {
    gap: 13px;
  }

  .bhs-auth-field .form-label {
    margin-bottom: 5px;
  }

  .account-page .bhs-auth-field .form-control,
  .account-page .bhs-auth-submit {
    min-height: 48px;
  }

  .bhs-auth-footer {
    margin-top: 16px;
  }
}
