/* Innovo Labour - sign-in screen */

:root {
  --navy-0:   #060b16;
  --navy-1:   #0b1426;
  --navy-2:   #0e1b31;
  --gold-1:   #f3d278;
  --gold-2:   #d4af37;
  --gold-3:   #b8912a;
  --text:     #eaf0fb;
  --muted:    #93a3bd;
  --line:     rgba(255, 255, 255, .09);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--navy-1);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------- page frame */

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px 24px 0;
  background:
    radial-gradient(1200px 700px at 78% 45%, rgba(23, 46, 86, .55), transparent 70%),
    radial-gradient(900px 600px at 12% 20%, rgba(32, 28, 12, .45), transparent 65%),
    linear-gradient(135deg, var(--navy-0) 0%, var(--navy-2) 55%, var(--navy-0) 100%);
}

/* faint diagonal texture */
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 58px
  );
  pointer-events: none;
}

/* gold corner wedges */
.corner {
  position: absolute;
  width: 230px;
  height: 230px;
  pointer-events: none;
}
.corner-tl {
  top: 0; left: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, .40), transparent 62%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-top: 3px solid rgba(212, 175, 55, .85);
}
.corner-br {
  right: 0; bottom: 0;
  background: linear-gradient(315deg, rgba(212, 175, 55, .32), transparent 62%);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  border-bottom: 3px solid rgba(212, 175, 55, .75);
}

/* ---------------------------------------------------------- layout */

.login-grid {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .85fr;
  align-items: center;
  gap: 64px;
}

/* ---------------------------------------------------------- brand side */

.brand-pane { padding: 0 24px 0 32px; }

/* innovo wordmark, painted through the logo shape so it can carry the gold */
.logo {
  display: block;
  -webkit-mask: url('/static/img/innovo-wordmark.svg') no-repeat center / contain;
          mask: url('/static/img/innovo-wordmark.svg') no-repeat center / contain;
}
.logo-gold {
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
}
.logo-lg { width: 300px; height: 68px; }
.logo-sm { width: 150px; height: 34px; }

.brand-system {
  display: block;
  margin-top: 10px;
  padding-left: 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 10px;
  text-transform: uppercase;
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-system-sm {
  margin-top: 7px;
  font-size: 13px;
  letter-spacing: 7px;
}

.brand-title {
  margin: 26px 0 18px;
  font-size: clamp(44px, 5.2vw, 70px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1px;
}
.brand-title .line-1,
.brand-title .line-2 { display: block; }
.brand-title .line-2 {
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text {
  max-width: 430px;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.75;
  color: #cbd6ea;
}

.brand-rule {
  display: block;
  width: 92px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-2), rgba(212, 175, 55, 0));
}

/* ---------------------------------------------------------- card side */

.card-pane { display: flex; justify-content: center; }

.signin-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 40px 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 31, 54, .92), rgba(11, 20, 38, .92));
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

.card-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}
.card-logo .brand-system { padding-left: 7px; }

.card-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.card-sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--muted);
}

.form-error {
  margin-bottom: 18px;
  padding: 11px 14px;
  font-size: 13.5px;
  border-radius: 10px;
  color: #ffc9c9;
  background: rgba(220, 38, 38, .14);
  border: 1px solid rgba(248, 113, 113, .35);
}

/* fields */

.field {
  position: relative;
  margin-bottom: 14px;
}
.field-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--gold-2);
  pointer-events: none;
}
.field-icon svg { width: 100%; height: 100%; }

.field input {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 46px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(8, 15, 29, .85);
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: #7f8ea8; }
.field input:focus {
  border-color: rgba(212, 175, 55, .65);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .13);
}

.eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #8294af;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s;
}
.eye svg { width: 18px; height: 18px; }
.eye:hover, .eye.on { color: var(--gold-2); }

/* remember + link row */

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 24px;
  font-size: 14px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c8d3e6;
  cursor: pointer;
  user-select: none;
}
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember .box {
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(8, 15, 29, .85);
  color: #0b1426;
  transition: background .15s, border-color .15s;
}
.remember .box svg { width: 13px; height: 13px; opacity: 0; }
.remember input:checked + .box {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  border-color: var(--gold-2);
}
.remember input:checked + .box svg { opacity: 1; }
.remember input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(212, 175, 55, .22); }

.link-gold {
  color: var(--gold-2);
  font-weight: 500;
  text-decoration: none;
}
.link-gold:hover { color: var(--gold-1); text-decoration: underline; }

/* button */

.btn-gold {
  width: 100%;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #1a1304;
  background: linear-gradient(100deg, var(--gold-1), var(--gold-2) 52%, var(--gold-3));
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(212, 175, 55, .34);
  transition: transform .14s, box-shadow .18s, filter .18s;
}
.btn-gold svg { width: 19px; height: 19px; }
.btn-gold:hover { filter: brightness(1.05); box-shadow: 0 14px 40px rgba(212, 175, 55, .45); }
.btn-gold:active { transform: translateY(1px); }

/* ---------------------------------------------------------- footer */

.login-footer {
  position: relative;
  z-index: 1;
  padding: 34px 16px 26px;
  text-align: center;
  font-size: 13.5px;
  color: #8295b2;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .login-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 24px 0;
  }
  .brand-pane { text-align: center; padding: 0 8px; }
  .brand-text { margin-inline: auto; }
  .brand-rule { margin: 0 auto; }
  .brand-mark { display: flex; flex-direction: column; align-items: center; }
  .logo-lg { width: 240px; height: 54px; }
  .corner { width: 140px; height: 140px; }
}

@media (max-width: 560px) {
  .login-page { padding: 28px 16px 0; }
  .signin-card { padding: 30px 22px 34px; }
  .brand-title { font-size: 40px; }
}
