/* =====================================================
   NBE Login – Pixel-perfect match to alahlynet.com.eg
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #ffffff;
  color: #333;
}

/* ── Screen wrapper ── */
.nbe-screen {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding-bottom: 32px;
}

.nbe-screen--hidden {
  display: none !important;
}

/* ── Language bar (top-right) ── */
.nbe-lang-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 16px 0;
  font-size: 14px;
  color: #444;
  font-weight: 500;
  direction: rtl;
}
.nbe-lang-icon {
  font-size: 18px;
}

/* ── Logo header ── */
.nbe-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px 12px;
}

.nbe-logo {
  width: clamp(200px, 60vw, 280px);
  height: auto;
  object-fit: contain;
}

/* ── Main content area ── */
.nbe-main {
  width: min(520px, 94vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

/* ── Retail / Corporate tabs ── */
.nbe-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.nbe-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 40px;
  border: none;
  background: #e8e8e8;
  color: #555;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nbe-tab--active {
  background: #555555;
  color: #ffffff;
}

.nbe-tab-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ── Input field ── */
.nbe-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.nbe-input {
  width: 100%;
  height: 58px;
  border: 1.5px solid #c0c0c0;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 17px;
  color: #333;
  background: #ffffff;
  outline: none;
  direction: ltr;
  transition: border-color 0.2s;
}

.nbe-input::placeholder {
  color: #a0a0a0;
  font-size: 16px;
}

.nbe-input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

/* ── "Forgot your user ID?" link ── */
.nbe-link-row {
  margin-top: 8px;
  margin-bottom: 24px;
}

.nbe-link {
  color: #333;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.nbe-link:hover {
  color: #2e7d32;
}

/* ── Primary button (Login) ── */
.nbe-btn-primary {
  width: 100%;
  height: 58px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
}

.nbe-btn-primary:hover {
  background: #256328;
}

.nbe-btn-primary:active {
  transform: scale(0.98);
}

/* ── Step-2 button row (Login + Back side by side) ── */
.nbe-btn-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 0;
}

.nbe-btn-primary--half {
  flex: 1;
}

.nbe-btn-back {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color 0.2s;
}

.nbe-btn-back:hover {
  color: #2e7d32;
}

/* ── Extra links (Register now / Become an NBE customer) ── */
.nbe-extra-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.nbe-link--underline {
  font-size: 16px;
  font-weight: 600;
  text-underline-offset: 4px;
}

/* ── Step-2 specific layout ── */
.nbe-main--step2 {
  padding-top: 4px;
}

/* ── Security image (password step) ── */
.nbe-security-img-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.nbe-security-img {
  width: clamp(180px, 55vw, 240px);
  height: clamp(150px, 45vw, 200px);
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #2e7d32;
  display: block;
}

/* ── Security phrase (below the image) ── */
.nbe-security-phrase {
  text-align: center;
  font-size: 16px;
  color: #333;
  margin: 0 0 22px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* ── Responsive tweaks ── */
@media (max-width: 400px) {
  .nbe-logo {
    width: 180px;
  }
  .nbe-tab {
    font-size: 15px;
    padding: 10px 16px;
  }
  .nbe-input {
    height: 52px;
    font-size: 16px;
  }
  .nbe-btn-primary {
    height: 52px;
    font-size: 18px;
  }
  .nbe-security-img {
    width: 170px;
    height: 140px;
  }
}
