:root {
  color-scheme: light;
  --navy: #07145a;
  --blue: #0718a8;
  --red: #f51e32;
  --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(7, 20, 90, .07), 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%, #111 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 { display: block; height: auto; max-height: 52px; object-fit: contain; }
.logo-cemex { width: 190px; max-width: 50%; }
.login-header .logo-admixture { width: 160px; max-width: 43%; max-height: 108px; }

h1 {
  margin: 0;
  color: #111;
  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;
}
.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;
  font: inherit;
  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: inherit;
  font-weight: 700;
  background: #000;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button:hover { background: #242424; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.alert { margin: 0 0 10px; padding: 10px 12px; color: #8e1717; background: #fff0f1; border-left: 4px solid var(--red); border-radius: 4px; overflow-wrap: anywhere; }
.security-note { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.back-link { display: block; margin-top: 10px; padding: 9px; color: var(--blue); font-weight: 700; text-align: center; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  body { padding: 16px; }
  .login-card { padding: 26px 20px 22px; }
  .login-header { gap: 16px; }
  .logo-cemex { width: 155px; }
  .login-header .logo-admixture { width: 140px; max-height: 94px; }
  h1 { font-size: 20px; }
}
