/* ==========================================================
   MukeSoft branded login page — ERPNext / Frappe v15
   Applies only on /login (body[data-path="login"])
   ========================================================== */

:root {
  --mks-navy: #16205c;
  --mks-navy-2: #24357f;
  --mks-orange: #f26a21;
  --mks-red: #e3262d;
  --mks-ink: #1f2937;
  --mks-muted: #6b7280;
  --mks-border: #e5e7eb;
  --mks-bg: #f5f6fa;
  --mks-panel-width: 44vw;
}

/* ---------- Page base ---------- */
body[data-path="login"] {
  background: var(--mks-bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body[data-path="login"] .navbar,
body[data-path="login"] .web-footer,
body[data-path="login"] footer {
  display: none !important;
}

body[data-path="login"] .page-content-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

body[data-path="login"] .page-content-wrapper > .container,
body[data-path="login"] main.container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto !important;
  padding: 0;
}

/* ---------- Login card ---------- */
body[data-path="login"] .page-card {
  background: #fff;
  border: 1px solid var(--mks-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(22, 32, 92, 0.08);
  padding: 36px 32px 28px;
  max-width: 420px;
  margin: 0 auto;
}

body[data-path="login"] .page-card-head {
  text-align: center;
  margin-bottom: 24px;
}

body[data-path="login"] .page-card-head .app-logo {
  max-height: 48px;
  width: auto;
  margin-bottom: 16px;
}

body[data-path="login"] .page-card-head h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--mks-ink);
  margin: 0;
}

/* ---------- Inputs ---------- */
body[data-path="login"] .form-control {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--mks-border);
  background: #fff;
  font-size: 14px;
  color: var(--mks-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body[data-path="login"] .form-control:focus {
  border-color: var(--mks-orange);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.15);
  outline: none;
}

body[data-path="login"] .form-group {
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
body[data-path="login"] .btn-primary,
body[data-path="login"] .btn-login {
  height: 44px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff;
  background: linear-gradient(135deg, var(--mks-orange) 0%, var(--mks-red) 100%);
  box-shadow: 0 6px 16px rgba(227, 38, 45, 0.25);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body[data-path="login"] .btn-primary:hover,
body[data-path="login"] .btn-login:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(227, 38, 45, 0.32);
}

body[data-path="login"] .btn-primary:active,
body[data-path="login"] .btn-login:active {
  transform: translateY(1px);
}

body[data-path="login"] .btn-default,
body[data-path="login"] .btn-secondary {
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--mks-border);
  background: #fff;
  font-weight: 500;
}

/* ---------- Links ---------- */
body[data-path="login"] a {
  color: var(--mks-navy-2);
  font-weight: 500;
}

body[data-path="login"] a:hover {
  color: var(--mks-orange);
  text-decoration: none;
}

body[data-path="login"] .forgot-password-message,
body[data-path="login"] .sign-up-message,
body[data-path="login"] .text-muted {
  color: var(--mks-muted);
}

/* ---------- Mobile footer line ---------- */
.mks-mobile-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--mks-muted);
}

/* ---------- Brand panel (desktop only) ---------- */
.mks-brand {
  display: none;
}

@media (min-width: 992px) {
  body[data-path="login"] {
    padding-left: var(--mks-panel-width);
  }

  .mks-mobile-footer {
    display: none;
  }

  .mks-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--mks-panel-width);
    padding: 48px 56px;
    color: #fff;
    overflow: hidden;
    background:
      radial-gradient(circle at 85% 15%, rgba(242, 106, 33, 0.35) 0, rgba(242, 106, 33, 0) 40%),
      radial-gradient(circle at 10% 90%, rgba(227, 38, 45, 0.25) 0, rgba(227, 38, 45, 0) 45%),
      linear-gradient(160deg, var(--mks-navy) 0%, var(--mks-navy-2) 100%);
    z-index: 1;
  }

  /* Decorative swoosh rings */
  .mks-brand::before,
  .mks-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
  }

  .mks-brand::before {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -180px;
  }

  .mks-brand::after {
    width: 340px;
    height: 340px;
    right: -120px;
    bottom: -80px;
    border-color: rgba(242, 106, 33, 0.25);
  }

  .mks-brand > * {
    position: relative;
    z-index: 1;
  }
  .mks-brand-main {
    max-width: 460px;
  }

  .mks-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffb48a;
    margin-bottom: 14px;
  }

  .mks-brand h1 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 14px;
    color: #fff;
  }

  .mks-brand p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px;
  }

  .mks-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
  }

  .mks-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.92);
  }

  .mks-features .mks-icon {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mks-features svg {
    width: 16px;
    height: 16px;
    stroke: #ffb48a;
  }

  .mks-brand-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
}

@media (min-width: 1400px) {
  :root {
    --mks-panel-width: 48vw;
  }

  .mks-brand {
    padding: 64px 80px;
  }

  .mks-brand h1 {
    font-size: 40px;
  }
}
