/* Dedicated login layout — avoids oversized letterhead image breaking the form */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

html,
body.ef-login {
  min-height: 100%;
  margin: 0;
}

body.ef-login {
  font-family: "Manrope", system-ui, sans-serif;
  color: #0F3D68;
  background:
    radial-gradient(900px 480px at 15% 10%, rgba(249, 115, 22, 0.28), transparent 55%),
    radial-gradient(1000px 560px at 85% 90%, rgba(15, 61, 104, 0.35), transparent 50%),
    linear-gradient(160deg, #0F3D68 0%, #2b547a 42%, #0F3D68 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

body.ef-login::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("../../images/RAZG41381.jpg") center 35% / min(920px, 140%) auto no-repeat;
  opacity: 0.08;
  pointer-events: none;
  filter: grayscale(0.15);
}

.ef-login__stage {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}

.ef-login__card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 2rem 1.6rem 1.5rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  animation: ef-login-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ef-login-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ef-login__brand {
  text-align: center;
  margin-bottom: 1.15rem;
}

.ef-login__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  position: relative;
  z-index: 1;
}
.ef-login__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.85rem;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0F3D68, #436789);
  box-shadow:
    0 0 0 4px rgba(232, 145, 58, 0.35),
    0 12px 28px rgba(11, 31, 51, 0.28);
}

.ef-login__mark-orbit {
  position: absolute;
  inset: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #F97316;
  border-right-color: transparent;
  animation: ef-orbit 6s linear infinite;
}

@keyframes ef-orbit {
  to {
    transform: rotate(360deg);
  }
}

.ef-login__mark-core {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 1;
}

.ef-login__title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  color: #0F3D68;
}

.ef-login__tag {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b6b7c;
}

.ef-login__heading {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-align: center;
  margin: 0 0 1.1rem;
  color: #2b547a;
}

.ef-login__form .form-group {
  margin-bottom: 0.95rem;
}

.ef-login__form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2b547a;
  margin-bottom: 0.35rem;
}

.ef-login__form .form-control {
  width: 100%;
  height: auto;
  min-height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 51, 0.12);
  background: #f4f8fb;
  padding: 0.6rem 0.9rem;
  font-size: 0.98rem;
  color: #0F3D68;
  box-shadow: none;
  box-sizing: border-box;
}

.ef-login__form .form-control:focus {
  outline: none;
  border-color: #436789;
  box-shadow: 0 0 0 3px rgba(20, 150, 201, 0.18);
  background: #fff;
}

.ef-login__form .btn-primary {
  width: 100%;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(135deg, #0F3D68, #436789);
  box-shadow: 0 12px 24px rgba(20, 150, 201, 0.32);
  cursor: pointer;
}

.ef-login__form .btn-primary:hover {
  background: linear-gradient(135deg, #0d355b, #0F3D68);
}

.ef-login__hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: #5b6b7c;
  line-height: 1.4;
}

@media (max-width: 480px) {
  body.ef-login {
    padding: 1rem;
  }

  .ef-login__card {
    padding: 1.5rem 1.15rem 1.25rem;
  }

  .ef-login__title {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ef-login__card,
  .ef-login__mark-orbit {
    animation: none;
  }
}

/* IPLINK brand palette override */
.btn-primary { background: #0F3D68 !important; border-color: #0F3D68 !important; }
.ef-login-hero { background: linear-gradient(135deg, #09243e, #0F3D68) !important; }

/* === IPLINK TWO-COLOR LOCK START === */
:root {
  --iplink-primary: #0F3D68;
  --iplink-primary-deep: #0C3255;
  --iplink-secondary: #F97316;
  --iplink-secondary-deep: #D66212;
  --iplink-ink: #111111;
  --iplink-cream: #F7F1E6;
  --iplink-white: #ffffff;
}
.btn-primary, .btn-success, .btn-info, .btn-login,
button[type=submit].btn, .btn-primary:not(:disabled):not(.disabled) {
  background: #0F3D68 !important;
  border-color: #0F3D68 !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover, .btn-login:hover {
  background: #0C3255 !important;
  border-color: #0C3255 !important;
  color: #fff !important;
}
.btn-warning, .badge-warning, .bg-warning, .badge.bg-warning {
  background: #F97316 !important;
  border-color: #F97316 !important;
  color: #111 !important;
}
.btn-danger, .badge-danger, .bg-danger, .badge.bg-danger {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #fff !important;
}
.btn-danger:hover {
  background: #000000 !important;
  border-color: #000000 !important;
}
.text-primary, .text-info, .text-success { color: #0F3D68 !important; }
.text-warning { color: #D66212 !important; }
.text-danger { color: #111111 !important; }
.bg-primary, .bg-info, .bg-success,
.badge-primary, .badge-info, .badge-success,
.badge.bg-primary, .badge.bg-info, .badge.bg-success {
  background: #0F3D68 !important;
  color: #fff !important;
}
.alert-success, .alert-info {
  background: #fff !important;
  color: #111 !important;
  border-color: #0F3D68 !important;
}
.alert-warning {
  background: #F7F1E6 !important;
  color: #111 !important;
  border-color: #F97316 !important;
}
.alert-danger {
  background: #F7F1E6 !important;
  color: #111 !important;
  border-color: #111111 !important;
}
.progress-bar { background-color: #0F3D68 !important; }
.nav-pills .nav-link.active,
.page-item.active .page-link,
.dropdown-item.active,
.dropdown-item:active {
  background-color: #0F3D68 !important;
  border-color: #0F3D68 !important;
  color: #fff !important;
}
.form-control:focus, .form-select:focus, .inp:focus {
  border-color: #0F3D68 !important;
  box-shadow: 0 0 0 0.15rem rgba(15, 61, 104, 0.18) !important;
}
.custom-control-input:checked ~ .custom-control-label::before,
.form-check-input:checked {
  background-color: #0F3D68 !important;
  border-color: #0F3D68 !important;
}
.form-check-input { accent-color: #0F3D68; }
[style*="color:blue"], [style*="color: blue"] { color: #0F3D68 !important; }
[style*="color:green"], [style*="color: green"] { color: #F97316 !important; }
[style*="color:red"], [style*="color: red"] { color: #111111 !important; }
.err, .kabox-alert.err, .qulider-alert.err {
  background: #F7F1E6 !important;
  color: #111 !important;
  border: 1px solid #111111 !important;
}
.creds, .kabox-creds, .demo-info, .qulider-creds {
  background: rgba(15, 61, 104, 0.08) !important;
  color: #111 !important;
  border: 1px solid rgba(15, 61, 104, 0.18) !important;
}
/* === IPLINK TWO-COLOR LOCK END === */
