:root {
  --ink: #172238;
  --muted: #748097;
  --line: #e2e7ee;
  --paper: #ffffff;
  --accent: #df1f2d;
  --accent-dark: #b51220;
  --blue: #123d8f;
  --shadow: 0 24px 70px rgba(18, 61, 143, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f4f6f6;
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 15% 10%, rgba(223, 31, 45, 0.14), transparent 31%),
    radial-gradient(circle at 88% 92%, rgba(18, 61, 143, 0.16), transparent 34%),
    linear-gradient(135deg, #f9faf9 0%, #eef2f2 100%);
}

.login-page {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
}

.login-card {
  width: min(100%, 454px);
  padding: 43px 48px 35px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  animation: rise-in 650ms ease both;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 27px;
  color: #fff;
  border-radius: 13px;
  background: var(--blue);
  box-shadow: 0 9px 20px rgba(18, 61, 143, 0.24);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  place-items: center;
}

.heading {
  margin-bottom: 23px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(26px, 5vw, 32px);
  letter-spacing: 0;
  line-height: 1.2;
}

.subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.course-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: #66748a;
  font-size: 12px;
}

.course-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.login-form {
  display: grid;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label,
.label-row {
  color: #3c4b62;
  font-size: 13px;
  font-weight: 600;
}

.label-row {
  display: flex;
  justify-content: space-between;
}

.label-row a,
.support a {
  color: var(--accent-dark);
  text-decoration: none;
}

.label-row a:hover,
.support a:hover {
  text-decoration: underline;
}

.input-wrap {
  position: relative;
}

.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8a96a7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transform: translateY(-50%);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 49px;
  padding: 0 15px 0 47px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
  font-size: 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(223, 31, 45, 0.12);
}

input::placeholder {
  color: #a0a9b6;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #778398;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.remember-me input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  display: grid;
  width: 17px;
  height: 17px;
  border: 1px solid #ccd3dd;
  border-radius: 4px;
  background: #fff;
  place-items: center;
}

.remember-me input:checked + .checkmark {
  border-color: var(--accent);
  background: var(--accent);
}

.remember-me input:checked + .checkmark::after {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

button {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 3px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(18, 61, 143, 0.2);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

button:hover {
  background: #0d2d6d;
  box-shadow: 0 11px 23px rgba(18, 61, 143, 0.27);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.support {
  margin: 31px 0 0;
  color: #9aa3b0;
  font-size: 11px;
  text-align: center;
}

.support span {
  padding: 0 6px;
  color: #c3c9d0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 20px 14px;
  }

  .login-card {
    padding: 32px 25px 28px;
  }
}
