/* AdsLipa Auth — Adsterra publishers inspired (original) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --ad-red: #d7432e;
  --ad-red-dark: #c0392b;
  --ad-green: #67ac5b;
  --ad-text: #353535;
  --ad-muted: #747474;
  --ad-line: #e0e0e0;
  --ad-bg: #f5f5f5;
  --ad-white: #ffffff;
  --ad-dark: #2c2c2c;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Roboto, system-ui, sans-serif;
  color: var(--ad-text);
  background: var(--ad-white);
  font-size: 14px;
  line-height: 1.45;
}

a { color: var(--ad-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--ad-line);
}
.auth-brand { display: flex; align-items: center; gap: 10px; color: var(--ad-text); text-decoration: none; font-weight: 700; font-size: 18px; }
.auth-brand:hover { text-decoration: none; color: var(--ad-text); }
.auth-mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--ad-red); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 18px;
}
.auth-top-links { display: flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.auth-top-links a { color: var(--ad-muted); }
.auth-top-links a.strong { color: var(--ad-red); display: inline-flex; gap: 6px; align-items: center; }

.auth-shell {
  display: grid; grid-template-columns: 1.15fr .85fr; min-height: calc(100vh - 67px);
}
.auth-form-col { padding: 40px 48px 56px; max-width: 720px; }
.auth-side-col {
  background: var(--ad-bg); padding: 48px 40px; border-left: 1px solid var(--ad-line);
}

.auth-title { font-size: 28px; font-weight: 400; margin-bottom: 8px; color: #222; }
.auth-title strong { color: var(--ad-red); font-weight: 700; }
.auth-sub { color: var(--ad-muted); margin-bottom: 28px; font-size: 14px; }

.alert-box {
  padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px;
}
.alert-box.err { background: #fef0ef; color: #8a2d13; border: 1px solid #f5c6c0; }
.alert-box.ok { background: #f1f9f1; color: #056305; border: 1px solid #c8e6c9; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 12px; font-weight: 500; color: var(--ad-muted); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; height: 42px; border: 1px solid #cfcfcf; border-radius: var(--radius);
  padding: 0 12px; font: 400 14px Roboto, sans-serif; color: var(--ad-text); background: #fff;
  outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--ad-red); }
.input-pass { position: relative; }
.input-pass input { padding-right: 40px; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--ad-muted); cursor: pointer; padding: 6px;
}
.hint { font-size: 11px; color: #9a9a9a; margin-top: 4px; }

.terms-row {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; font-size: 13px; color: var(--ad-text);
}
.terms-row input { margin-top: 3px; accent-color: var(--ad-green); width: 16px; height: 16px; }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; height: 44px; padding: 0 28px;
  background: var(--ad-dark); color: #fff; border: 0; border-radius: var(--radius);
  font: 500 14px Roboto, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; transition: background .15s;
}
.btn-dark:hover { background: #1f1f1f; }
.btn-red {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; height: 44px; padding: 0 28px;
  background: var(--ad-red); color: #fff; border: 0; border-radius: var(--radius);
  font: 500 14px Roboto, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer;
}
.btn-red:hover { background: var(--ad-red-dark); }

.auth-switch { margin-top: 22px; font-size: 13px; color: var(--ad-muted); }

.side-title { font-size: 20px; font-weight: 500; margin-bottom: 22px; }
.side-block { margin-bottom: 22px; }
.side-block h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #222; }
.side-block p, .side-block li { font-size: 13px; color: var(--ad-muted); line-height: 1.55; }
.side-block ul { padding-left: 18px; }
.side-block li { margin: 3px 0; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side-col { border-left: 0; border-top: 1px solid var(--ad-line); }
  .auth-form-col { padding: 28px 20px 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-top { padding: 14px 16px; }
}
