:root {
  --ink: #111827;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.28);
  --panel: rgba(255, 255, 255, 0.92);
  --field: #f8fafc;
  --brand: #0f766e;
  --brand-dark: #0b5954;
  --accent: #f97316;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.14), rgba(249, 115, 22, 0.08)),
    linear-gradient(180deg, #f8fafc 0%, #eef4f7 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
}

.brand-panel,
.form-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}

.brand-panel {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(8, 47, 73, 0.94), rgba(15, 118, 110, 0.9)),
    url("../../hub/images/auth/login-bg.jpg") center/cover;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 6, 23, 0.55), rgba(15, 118, 110, 0.16));
}

.brand-mark,
.brand-copy,
.metric-grid {
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 52px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  font-size: 24px;
}

.brand-mark img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: #99f6e4;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.subcopy {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin-top: 54px;
}

.metric-grid div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  margin-bottom: 5px;
  font-size: 18px;
}

.metric-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.form-panel {
  align-items: center;
}

.form-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
}

.login-logo {
  width: min(190px, 70%);
  height: auto;
  display: block;
  margin-bottom: 28px;
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.form-heading p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.alert {
  margin-bottom: 18px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 8px;
  background: #fef3f2;
  color: var(--danger);
  padding: 12px;
  font-size: 14px;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 17px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  padding: 0 14px 0 44px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: rgba(15, 118, 110, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-weight: 500;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

button {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover,
button:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(15, 118, 110, 0.22);
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .form-panel {
    min-height: auto;
  }

  .brand-panel {
    padding-bottom: 34px;
  }
}

@media (max-width: 620px) {
  .brand-panel,
  .form-panel {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .form-card {
    padding: 24px;
  }
}
