:root {
  --navy: #07145a;
  --blue: #0718a8;
  --red: #f51e32;
  --orange: #f39200;
  --ink: #182235;
  --muted: #657189;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(7, 24, 168, .13), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(243, 146, 0, .12), transparent 30%),
    #eef2f7;
  font: 14px/1.4 Arial, Helvetica, sans-serif;
}

.login-card {
  position: relative;
  width: min(100%, 470px);
  overflow: hidden;
  padding: 30px 36px 26px;
  background: #fff;
  border: 1px solid #d9dfeb;
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(7, 20, 90, .16);
}

.brand-line {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--red) 0 17%, var(--blue) 17% 78%, var(--orange) 78%);
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
  padding-bottom: 17px;
  border-bottom: 2px solid var(--blue);
}

.login-header img:first-child { width: 190px; max-height: 52px; object-fit: contain; }
.login-header img:last-child { width: 98px; max-height: 52px; object-fit: contain; }

h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.018em;
  text-align: center;
}
.no-break { white-space: nowrap; }
.subtitle { margin: 8px 0 24px; color: var(--muted); text-align: center; }

form { display: grid; gap: 8px; }
label { margin-top: 7px; color: #30466b; font-size: 12px; font-weight: 700; text-transform: uppercase; }
input {
  min-height: 43px;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcfe;
  border: 1px solid #bdc7d8;
  border-radius: 6px;
  outline: none;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 24, 168, .11); }
button {
  min-height: 44px;
  margin-top: 15px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(100deg, var(--navy), var(--blue));
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

.alert { margin: 0 0 10px; padding: 10px 12px; color: #8e1717; background: #fff0f1; border-left: 4px solid var(--red); border-radius: 4px; }
.alert.success { color: #087f5b; background: #e9fbf5; border-left-color: #087f5b; }
.security-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.back-link { margin-top: 10px; padding: 9px; color: var(--blue); font-weight: 700; text-align: center; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.change-card { width: min(100%, 520px); }

@media (max-width: 520px) {
  .login-card { padding: 26px 20px 22px; }
  .login-header img:first-child { width: 155px; }
  .login-header img:last-child { width: 78px; }
  h1 { font-size: 20px; }
}
