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

:root {
  --bnb-navy:        #004973;
  --bnb-navy-deep:   #00324f;
  --bnb-navy-mid:    #005d8f;
  --bnb-sky:         #7EC8E3;
  --bnb-border:      #cddae4;
  --bnb-text-main:   #0f2333;
  --bnb-text-sub:    #4d6f82;
  --bnb-text-hint:   #8faab8;
  --bnb-error:       #b83232;
  --bnb-error-bg:    #fdf2f2;
  --bnb-error-border:#e8b4b4;
  --bnb-success-bg:  #f0faf5;
  --bnb-success:     #1a6e47;
}

/* ── BASE ── */
body.login-page {
  font-family: 'Sora', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #edf4f8;
  min-height: 100vh;
}

/* ── PAGE WRAPPER ── */
.bg-contain.auth-page {
  display: flex !important;
  min-height: 100vh;
  justify-content: flex-start !important;
  align-items: stretch;
  background-image: none !important;
  background-color: transparent !important;
  padding: 0 !important;
}

/* ── FORM — split layout container ── */
.auth-form {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

/* ── LEFT PANEL ── */
.auth-form-left {
  flex: 1 1 0;
  width: 50% !important;
  max-width: 50% !important;
  min-height: 100vh;
  background: var(--bnb-navy);
  display: flex;
  flex-direction: column;
  padding: 52px 56px;
  position: relative;
  overflow: hidden;
  overflow-y: auto;
}

/* Gradient overlay */
.auth-form-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 42, 68, 0.45) 0%, rgba(11, 79, 121, 0.35) 100%);
  pointer-events: none;
}

/* Diagonal grid */
.auth-form-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 1px, transparent 12px);
  pointer-events: none;
}

.left-logo-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.left-logo-wrap img {
  height: 44px;
  width: auto;
  display: block;
}

.left-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding-bottom: 120px;
}

.left-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.left-eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bnb-sky);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.left-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bnb-sky);
  border-radius: 2px;
  flex-shrink: 0;
}

.left-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}

.left-headline span {
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  font-style: italic;
}

.left-desc {
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 40px;
}

.left-props {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.left-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.left-prop-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.left-prop-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--bnb-sky);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.left-prop-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  margin-bottom: 3px;
}

.left-prop-text span {
  font-family: 'Sora', sans-serif;
  font-size: 11.5px;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}

.left-footer {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  line-height: 1.5;
  flex-shrink: 0;
  padding-top: 24px;
}

/* ── RIGHT PANEL ── */
.wyt-login-box,
body.login-page .wyt-login-box {
  flex: 1 1 0 !important;
  width: 50% !important;
  max-width: 50% !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f4f8fb !important;
  background-color: #f4f8fb !important;
  padding: 24px 48px 220px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-y: auto !important;
}

.wyt-login-box__inner,
body.login-page .wyt-login-box__inner {
  width: 100%;
  max-width: 560px;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  background: #ffffff !important;
  padding: 44px 48px 36px;
  border-radius: 14px !important;
  box-shadow: 0 4px 24px rgba(0,73,115,0.1), 0 1px 4px rgba(0,73,115,0.06) !important;
  border: 1px solid #d6e5ef !important;
}

/* Hide logo on right — shown on left panel */
.auth-form__icon {
  display: none !important;
}

/* ── HEADINGS ── */
.heading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: unset;
  margin-bottom: 22px;
}

.auth-form__heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  text-align: left;
  color: var(--bnb-text-main);
  margin: 0;
  letter-spacing: -0.3px;
}

.auth-form__subheading {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: left;
  color: var(--bnb-text-sub);
  margin: 0;
}

/* ── ALERT BANNERS (inline PHP style overrides) ── */
.wyt-login-box__inner > div[style*="background-color"] {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-family: 'Sora', sans-serif !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
  padding: 11px 14px !important;
}

/* ── FORM FIELDS ── */
.login-form-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  min-height: unset;
  margin-bottom: 0;
}

.login-field-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
}

.auth-form__label {
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--bnb-text-main);
  margin: 0;
}

.auth-form__input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 15px;
  height: 50px;
  background: #f7fafc;
  border: 1px solid var(--bnb-border);
  border-radius: 9px;
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--bnb-text-main);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}

.auth-form__input::placeholder {
  color: var(--bnb-text-hint);
}

.auth-form__input:focus {
  border-color: var(--bnb-navy);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,73,115,0.1);
}

/* Error states */
.error-field,
.auth-form__input.error-field {
  border: 1px solid var(--bnb-error) !important;
  box-shadow: 0 0 0 3px rgba(184,50,50,0.09) !important;
  background: #fff !important;
  outline: none !important;
}

.error-field:focus {
  border-color: var(--bnb-error) !important;
  box-shadow: 0 0 0 3px rgba(184,50,50,0.1) !important;
}

.field-error-message {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  color: var(--bnb-error);
  margin-top: 2px;
  display: block;
}

/* ── PASSWORD TOGGLE ── */
.password-wrapper {
  width: 100%;
  position: relative;
}

.password-wrapper .auth-form__input {
  padding-right: 44px !important;
}

.password-toggle-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--bnb-text-hint);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.password-toggle-icon:hover { color: var(--bnb-text-sub); }

/* ── FORGOT PASSWORD ── */
.auth-form__reset {
  font-family: 'Sora', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bnb-navy-mid) !important;
  text-decoration: none;
  transition: color 0.12s;
}

.auth-form__reset:hover {
  color: var(--bnb-navy) !important;
  text-decoration: underline;
}

.d-flex.h-end {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* ── SUBMIT BUTTON ── */
.login-button.auth-form__submit {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  height: 52px;
  background: var(--bnb-navy) !important;
  border: 1px solid var(--bnb-navy);
  border-radius: 9px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.15px;
  color: #fff !important;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  margin-top: 6px;
}

.login-button.auth-form__submit:hover {
  background: var(--bnb-navy-deep) !important;
  box-shadow: 0 4px 20px rgba(0,73,115,0.28);
}

.login-button.auth-form__submit:disabled,
.login-button.auth-form__submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes bnb-spin {
  to { transform: rotate(360deg); }
}

.login-button.auth-form__submit .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bnb-spin 0.7s linear infinite;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ── REGISTER ROW ── */
.f-row.h-center.v-center.register-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 4px;
}

.register-now {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--bnb-text-sub);
  margin: 0;
}

.register-link .link-input {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--bnb-navy-mid) !important;
  text-decoration: none;
}

.register-link .link-input:hover {
  text-decoration: underline;
}

/* ── DIVIDER ── */
.login-divider-line {
  width: 100%;
  height: 1px;
  background: var(--bnb-border);
  margin: 4px 0;
}

/* ── SHORT VIEWPORT / HIGH ZOOM SAFETY ── */
@media (max-height: 750px) {
  body.login-page .wyt-login-box  { align-items: flex-start !important; padding-top: 36px !important; padding-bottom: 36px !important; }
  .left-content   { padding-bottom: 20px; }
}

@media (max-height: 600px) {
  .auth-form-left { padding: 28px 36px; }
  .left-eyebrow   { display: none; }
  .left-desc      { display: none; }
  .left-props     { gap: 8px; }
  .left-prop-text span { display: none; }
  .left-headline  { font-size: 20px; margin-bottom: 10px; }
  .left-footer    { display: none; }
  .left-content   { padding-bottom: 0; }
  body.login-page .wyt-login-box  { padding-top: 28px !important; padding-bottom: 28px !important; }
}

/* ── LARGE DESKTOP (1400px+) ── */
@media (min-width: 1400px) {
  .auth-form-left        { padding: 60px 68px; }
  .left-logo-wrap img    { height: 52px; }
  .left-eyebrow          { font-size: 11.5px; margin-bottom: 18px; }
  .left-headline         { font-size: 36px; margin-bottom: 20px; }
  .left-desc             { font-size: 15px; margin-bottom: 48px; }
  .left-prop-icon        { width: 36px; height: 36px; border-radius: 9px; }
  .left-prop-icon svg    { width: 16px; height: 16px; }
  .left-prop-text strong { font-size: 14.5px; }
  .left-prop-text span   { font-size: 13px; }
  .left-props            { gap: 18px; }
  .left-footer           { font-size: 12px; }

  body.login-page .wyt-login-box         { padding: 56px 60px !important; }
  body.login-page .wyt-login-box__inner  { max-width: 640px !important; padding: 52px 56px 44px !important; border-radius: 16px !important; }

  .auth-form__heading    { font-size: 30px; }
  .auth-form__subheading { font-size: 16px; }
  .heading-wrapper       { margin-bottom: 28px; gap: 8px; }

  .auth-form__label      { font-size: 15px; }
  .auth-form__input      { height: 56px; font-size: 16px; padding: 14px 17px; border-radius: 10px; }
  .login-form-fields     { gap: 20px; }

  .auth-form__reset      { font-size: 14.5px; }

  .login-button.auth-form__submit {
    height: 58px !important;
    font-size: 17px !important;
    border-radius: 10px !important;
  }

  .register-now              { font-size: 15px; }
  .register-link .link-input { font-size: 15px; }
}

/* ── LARGE LAPTOP ── */
@media (max-width: 1100px) {
  .auth-form-left { padding: 48px 44px; }
  body.login-page .wyt-login-box  { padding: 48px !important; }
  body.login-page .wyt-login-box__inner { max-width: 500px !important; }
  .left-headline  { font-size: 26px; }
}

/* ── TABLET LANDSCAPE ── */
@media (max-width: 900px) {
  .auth-form-left { flex: 0 0 42%; padding: 40px 28px; }
  body.login-page .wyt-login-box  { padding: 40px 24px !important; }
  body.login-page .wyt-login-box__inner { max-width: 440px !important; padding: 32px 32px 28px !important; }
  .left-headline  { font-size: 24px; }
  .left-desc      { font-size: 13px; }
}

/* ── TABLET PORTRAIT — stack vertically ── */
@media (max-width: 800px) {
  .auth-form      { flex-direction: column !important; }
  .auth-form-left { flex: none; width: 100% !important; max-width: 100% !important; min-height: unset; padding: 32px 28px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); overflow-y: visible; }
  .left-content   { padding-bottom: 0; justify-content: flex-start; padding-top: 20px; }
  .left-props     { gap: 10px; }
  .left-headline  { font-size: 20px; }
  .left-desc      { display: none; }
  .left-footer    { display: none; }
  body.login-page .wyt-login-box  { width: 100% !important; max-width: 100% !important; min-height: unset !important; padding: 36px 28px 48px !important; align-items: flex-start !important; overflow-y: visible !important; }
  body.login-page .wyt-login-box__inner { max-width: 100% !important; padding: 36px 32px 28px !important; }
}

/* ── MOBILE ── */
@media (max-width: 480px) {
  .auth-form-left     { padding: 24px 20px 20px; }
  .left-logo-wrap img { height: 36px; }
  .left-content       { padding-top: 16px; }
  .left-props         { display: none; }
  .left-eyebrow       { display: none; }
  .left-headline      { font-size: 18px; margin-bottom: 0; }
  .left-footer        { display: none; }
  body.login-page .wyt-login-box      { padding: 24px 16px 36px !important; }
  body.login-page .wyt-login-box__inner { padding: 28px 20px 24px !important; }
}
