:root {
  --ink: #0b1220;
  --muted: #6b7280;
  --line: #e6eaf2;
  --soft: #f4f7fb;
  --blue: #2563eb;
  --cyan: #38bdf8;
  --shadow: 0 28px 70px rgba(37, 99, 235, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #f5f8ff;
}

body.login-page {
  min-height: 100vh;
  background:
    url("../images/workify_clean_background_texture.png") center / cover no-repeat,
    #f5f8ff;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: 32px;
  padding: 36px 56px 28px;
}

.login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 430px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.login-copy h1 {
  margin: 48px 0 10px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.login-copy p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 390px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.field__box:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.field__box svg {
  flex: 0 0 18px;
  color: #94a3b8;
}

.field__box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.field__box input::placeholder {
  color: #9aa3b2;
}

.pw-toggle {
  border: 0;
  background: none;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.link {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.link:hover { text-decoration: underline; }

.btn-login {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 42%, #38bdf8 100%);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn-login:hover { filter: brightness(1.03); }

.form__error {
  margin: 0 0 14px;
  color: #b42318;
  font-size: 13px;
}

.safe {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf1f7;
}

.safe svg { color: var(--blue); margin-top: 2px; }

.safe b {
  display: block;
  font-size: 13px;
}

.safe span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  color: #94a3b8;
  font-size: 12px;
}

.login-foot a {
  color: inherit;
  text-decoration: none;
}

.login-right {
  position: relative;
  padding: 8px 8px 8px 20px;
}

.demo-pill {
  position: absolute;
  top: 0;
  right: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #dbe3ef;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 56px 0 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  display: inline-block;
}

.login-right h2 {
  margin: 0 0 12px;
  max-width: 620px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.login-right > p {
  margin: 0 0 28px;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.dash-shot {
  width: min(100%, 760px);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dash-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
  margin-top: 28px;
}

.feat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feat__ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e8eef6;
  color: #2563eb;
  flex: 0 0 40px;
}

.feat b {
  display: block;
  font-size: 14px;
}

.feat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.side-text {
  position: absolute;
  right: -6px;
  top: 58%;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }
  .login-left { max-width: none; }
  .login-copy h1 { margin-top: 28px; font-size: 34px; }
  .login-right { padding: 8px 0 0; }
  .login-right h2 { font-size: 36px; margin-top: 28px; }
  .demo-pill { position: static; margin-bottom: 8px; }
  .side-text { display: none; }
  .dots { margin-top: 20px; }
}

@media (max-width: 720px) {
  .feats { grid-template-columns: 1fr; }
  .login-foot { flex-direction: column; }
}
