/* ============================================================
   Eximia Landscape — Login Page
   Overrides / replaces Datta Able auth styles entirely.
   Only loaded on the login page via {% block extrastyle %}.
   ============================================================ */

/* --- Page shell ------------------------------------------- */

/* Kill the default body scrollbar flash and white bg */
body {
  margin: 0;
  min-height: 100vh;
  background: none;
}

/* Hide the Datta Able page loader on the auth page */
.loader-bg {
  display: none !important;
}

/* Wipe any Datta Able auth layout chrome */
.auth-main,
.auth-wrapper,
.auth-form,
.auth-bg {
  all: unset;
  display: block;
}

/* --- Full-screen background -------------------------------- */

.exi-login-bg {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(150deg, #1a0033 0%, #380370 55%, #8918e1 100%);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Subtle texture overlay — very faint diagonal grain */
.exi-login-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- Card -------------------------------------------------- */

.exi-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 12px;
  padding: 48px 44px 40px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 20px 60px -10px rgba(0, 0, 0, 0.45);
}

/* --- Logo area --------------------------------------------- */

.exi-logo-wrap {
  text-align: center;
  margin-bottom: 8px;
}

.exi-logo-wrap img {
  height: 120px;
  width: auto;
  display: inline-block;
  /* Logo SVG is black paths — looks great on white card */
}

.exi-subtitle {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 32px;
}

/* --- Error / flash messages -------------------------------- */

.exi-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  font-size: 13.5px;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* --- Form fields ------------------------------------------- */

.exi-field {
  margin-bottom: 16px;
}

.exi-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.exi-field input[type="text"],
.exi-field input[type="password"],
.exi-field input[type="email"] {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.exi-field input[type="text"]:focus,
.exi-field input[type="password"]:focus,
.exi-field input[type="email"]:focus {
  background: #ffffff;
  border-color: #8918e1;
  box-shadow: 0 0 0 3px rgba(137, 24, 225, 0.12);
}

.exi-field input::placeholder {
  color: #9ca3af;
}

/* --- Remember me ------------------------------------------- */

.exi-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px;
  cursor: pointer;
  user-select: none;
}

.exi-remember input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  background: #f9fafb;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.exi-remember input[type="checkbox"]:checked {
  background: #8918e1;
  border-color: #8918e1;
}

.exi-remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
}

.exi-remember-label {
  font-size: 13.5px;
  color: #6b7280;
  cursor: pointer;
}

/* --- Submit button ----------------------------------------- */

.exi-btn {
  display: block;
  width: 100%;
  height: 50px;
  background: #8918e1;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
  outline: none;
}

.exi-btn:hover {
  background: #380370;
  box-shadow: 0 4px 14px rgba(137, 24, 225, 0.4);
}

.exi-btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.exi-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(137, 24, 225, 0.35);
}

/* --- Footer text ------------------------------------------- */

.exi-footer {
  text-align: center;
  font-size: 12px;
  color: #d1fae5;
  margin-top: 28px;
  opacity: 0.7;
}

/* --- Watermark --------------------------------------------- */

.exi-watermark {
  position: fixed;
  bottom: 10px;
  right: 14px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* --- Responsive -------------------------------------------- */

@media (max-width: 480px) {
  .exi-card {
    padding: 36px 24px 30px;
  }

  .exi-logo-wrap img {
    height: 80px;
  }
}
