/* Kumbukum Login Split Theme (production)
   For existing Bootstrap login DOM at /login (no class renaming required)
   Load AFTER vendor.css and app.css.
*/

:root {
  --kk-bg: #070b16;
  --kk-bg-2: #0b1020;
  --kk-line: #2b3766;
  --kk-text: #eef1ff;
  --kk-muted: #b1b9de;
  --kk-primary: #6f61ff;
  --kk-primary-2: #4f67f0;
}

html, body {
  min-height: 100%;
  margin: 0;
  color: var(--kk-text);
  background: radial-gradient(circle at 20% -10%, #1a2a5b 0%, var(--kk-bg-2) 44%), var(--kk-bg) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

h3,
h4,
h5 {
  color: var(--kk-text) !important;
}

.text-muted {
  color: var(--kk-muted) !important;
}

/* Shell */
.container {
  width: min(1200px, 100%);
  min-height: min(780px, calc(100vh - 28px));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #25305a;
  position: relative;
  background: #0a1022;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

/* Right visual panel */
.container::after {
  content: "";
  grid-column: 2;
  min-height: 100%;
  background:
    radial-gradient(circle at 72% 30%, rgba(255, 157, 77, 0.7), rgba(176, 88, 42, 0.35) 36%, transparent 55%),
    radial-gradient(circle at 58% 60%, rgba(255, 214, 165, 0.55), transparent 36%),
    linear-gradient(160deg, #3b1f2a 0%, #7a391f 48%, #1f0f15 100%);
  display: block;
}

/* Left auth lane */
.row.justify-content-center.mt-5 {
  grid-column: 1;
  margin: 0 !important;
  justify-content: flex-start !important;
  align-items: stretch;
  min-height: 100%;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 20% -15%, #283a7a 0%, transparent 45%),
    linear-gradient(180deg, rgba(15, 23, 48, 0.95), rgba(10, 16, 34, 0.96));
  padding: 28px;
}

.col-md-5 {
  width: min(100%, 500px) !important;
  max-width: none;
}

.card.shadow {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.card-body.p-4 {
  padding: 0 !important;
}

/* Logo block */
.logo-form {
  text-align: left !important;
  margin-bottom: 22px !important;
}
.logo-form img {
  max-height: 42px;
  width: auto;
  filter: brightness(1.06);
}



/* Reorder: quick buttons on top */
#login-form {
  display: flex;
  flex-direction: column;
}
#login-form .d-grid.gap-2 {
  order: 1;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap;
  margin: 0 0 18px !important;
}
#login-form .d-grid.gap-2 .btn {
  width: auto;
  border: 1px solid #44579e !important;
  border-radius: 10px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #dbe2ff !important;
  background: #17234b !important;
}
#login-form .d-grid.gap-2 .btn i { margin-right: 6px; }

#login-form hr {
  order: 2;
  height: 1px;
  background: #2b3766;
  border: 0;
  margin: 1rem 0 1rem !important;
  opacity: 1;
}

#login-form form[action="/login"] {
  order: 3;
}

/* Labels + inputs */
.form-label {
  display: block;
  margin: 10px 0 7px;
  font-size: 13px;
  color: #d4dcff !important;
  font-weight: 700;
}

.form-control {
  width: 100%;
  border: 1px solid #314179 !important;
  background: rgba(15, 23, 50, 0.9) !important;
  color: var(--kk-text) !important;
  border-radius: 12px !important;
  padding: 13px 14px !important;
  min-height: 48px;
  font-size: 15px;
}

.form-control:focus {
  border-color: var(--kk-primary) !important;
  box-shadow: 0 0 0 1px var(--kk-primary) inset, 0 0 0 .2rem rgba(111, 97, 255, .14) !important;
  background: rgba(16, 26, 54, 0.95) !important;
}

/* Forgot link */
#login-form .mb-2.text-end {
  margin-top: 10px !important;
}
#login-form a.small {
  color: #c5d0ff !important;
  text-decoration: underline;
  text-decoration-color: #6577b6;
  text-underline-offset: 2px;
  font-size: 13px;
}

/* Primary CTA */
.btn.btn-primary.w-100 {
  margin-top: 14px;
  width: 100%;
  border: 1px solid #4f61bf !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 16px;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--kk-primary), var(--kk-primary-2)) !important;
}

/* Magic link + 2FA screens styling */
#magic-link-form,
#totp-form {
  /* border-top: 1px solid #2b3766; */
  margin-top: 16px;
  padding-top: 16px;
}
#magic-link-form h5 {
  color: #dbe2ff;
  font-weight: 700;
}

/* Footer links */
.small,
.text-center .small {
  color: #b9c5fb !important;
}

/* Mobile fallback */
@media (max-width: 980px) {
  body { padding: 10px; }
  .container {
    display: block;
    min-height: auto;
  }
  .container::after { display: none; }
  .row.justify-content-center.mt-5 {
    padding: 20px;
  }
  #login-form::before { font-size: 38px; }
  #login-form .d-grid.gap-2 {
    flex-direction: column;
  }
  #login-form .d-grid.gap-2 .btn {
    width: 100%;
  }
}
