/* MR Login — standalone professional layout */
:root {
  --ink: #0b1220;
  --muted: #5b6478;
  --line: #e4e8f1;
  --brand: #1a1464;
  --brand-light: #2d2489;
  --brand-soft: #edeafd;
  --accent: #d92819;
  --panel: #ffffff;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(26, 20, 100, 0.14);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #eef1f8;
  overflow-x: hidden;
}

.sign-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  isolation: isolate;
}

/* Background layers */
.sign-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(26, 20, 100, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 10%, rgba(217, 40, 25, 0.09), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(45, 36, 137, 0.08), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f7f8fd 45%, #eef1f8 100%);
}

.sign-bg-svg {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.sign-frame {
  width: min(100%, 470px);
  position: relative;
}

.sign-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 2px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(26, 20, 100, 0.25), rgba(217, 40, 25, 0.15), rgba(45, 36, 137, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
}

@media (min-width: 760px) {
  .sign-frame::before {
    opacity: 1;
  }
}

.sign-grid {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(26, 20, 100, 0.06);
  background: var(--panel);
}

/* Login card */
.sign-card {
  padding: 28px 24px 26px;
  background: var(--panel);
}

@media (min-width: 760px) {
  .sign-card {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.sign-card-header {
  text-align: center;
  margin-bottom: 22px;
}

.sign-login-logo {
  display: block;
  width: min(180px, 68vw);
  height: auto;
  margin: 0 auto 14px;
}

.sign-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-soft), #f4f6fb);
  border: 1px solid rgba(26, 20, 100, 0.1);
  box-shadow: 0 4px 14px rgba(26, 20, 100, 0.08);
}

.sign-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--brand);
}

.sign-portal-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.sign-card h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.sign-lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.sign-form {
  display: grid;
  gap: 14px;
}

.sign-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #334155;
}

.sign-input-wrap {
  position: relative;
}

.sign-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  pointer-events: none;
}

.sign-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  color: var(--ink);
  background: #fafbfe;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sign-field input:focus {
  outline: none;
  border-color: var(--brand-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 36, 137, 0.12);
}

.sign-field input::placeholder {
  color: #94a3b8;
}

.sign-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  box-shadow: 0 8px 24px rgba(26, 20, 100, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sign-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 20, 100, 0.32);
}

.sign-submit:active {
  transform: translateY(0);
}

.sign-message {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 4px;
}

.sign-message.visible { display: block; }

.sign-message.error {
  background: #fff1ef;
  color: var(--accent);
  border: 1px solid #fdd8d4;
}

.sign-links {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.sign-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.sign-links a:hover {
  text-decoration: underline;
}

.sign-links span {
  margin: 0 8px;
  color: #cbd5e1;
}
