/* ═══════════════════════════════════════════════════════
   PEERTECHZ PUBLICATIONS — SIGN IN PAGE
   Color rule: 60% White (#FFFFFF) · 30% Dark (#111111) · 10% Red (#C41E3A)
   Fonts: Cormorant Garamond (display) · DM Sans (body)
═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --white:       #FFFFFF;
  --off-white:   #F9F9F9;
  --dark:        #111111;
  --dark-card:   #181818;
  --red:         #C41E3A;
  --red-hover:   #A8162F;

  --text-primary:   rgba(15, 15, 15, 0.92);
  --text-secondary: rgba(15, 15, 15, 0.45);
  --text-muted:     rgba(15, 15, 15, 0.28);

  --on-dark-primary:   rgba(255, 255, 255, 0.90);
  --on-dark-secondary: rgba(255, 255, 255, 0.35);
  --on-dark-muted:     rgba(255, 255, 255, 0.18);

  --border-light: rgba(0,   0,   0,   0.08);
  --border-dark:  rgba(255, 255, 255, 0.09);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-card: 20px;
  --radius-btn:  10px;
  --radius-input:8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Page shell ── */
html, body {
  height: 100%;
  background: var(--off-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

/* ── Two-column card ── */
.p-page {
  display: grid;
  grid-template-columns: 1fr 400px;
  width: 100%;
  max-width: 980px;
  min-height: 450px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);
}

/* ════════════════════════════════════
   LEFT — 60% white
════════════════════════════════════ */
.p-left {
  background: var(--white);
  padding: 110px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* Decorative rings */
.p-bg-ring,
.p-bg-ring2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.p-bg-ring {
  width: 320px; height: 320px;
  border: 1.5px solid rgba(196, 30, 58, 0.07);
  top: -90px; right: -90px;
}
.p-bg-ring2 {
  width: 200px; height: 200px;
  border: 1px solid rgba(196, 30, 58, 0.05);
  bottom: 40px; left: -60px;
}

/* ── Logo row — enlarged ── */
.p-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 2;
}

.p-logo-img {
  height: 50px;       /* ← larger logo */
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.p-logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.p-logo-name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.p-logo-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Hero ── */
.p-hero {
  position: relative;
  z-index: 2;
}

.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.p-eyebrow-line {
  width: 28px; height: 2px;
  background: var(--red);
}
.p-eyebrow-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.p-headline {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -0.5px;
}
.p-headline em {
  font-style: italic;
  color: var(--red);
}

.p-desc {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 280px;
  font-weight: 300;
}

/* ── Stats strip ── */
.p-stats {
  display: flex;
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  position: relative;
  z-index: 2;
}

.p-stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--border-light);
  margin-right: 24px;
}
.p-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.p-stat-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.p-stat-num.red { color: var(--red); }

.p-stat-label {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ════════════════════════════════════
   RIGHT — 30% dark content area
════════════════════════════════════ */
.p-right {
  background: var(--dark);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form eyebrow */
.p-form-eye {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.p-form-eye-line {
  width: 22px; height: 2px;
  background: var(--red);
}
.p-form-eye-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.p-form-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--on-dark-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.p-form-sub {
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-dark-secondary);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ── Fields ── */
.p-field { margin-bottom: 18px; }

.p-field label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-primary);
  margin-bottom: 7px;
}

.p-field-wrap { position: relative; }

.p-field input {
  width: 100%;
  padding: 12px 40px 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-input);
  color: var(--on-dark-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.p-field input::placeholder {
  color: rgba(255,255,255,0.18);
  font-style: italic;
}
.p-field input:focus {
  border-color: rgb(255 255 255);
  background: rgba(196, 30, 58, 0.06);
}

.p-field-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgb(255 255 255);
  pointer-events: none;
}

.p-field-error {
  margin-top: 5px;
  font-size: 11px;
  color: var(--red);
}

/* ── Alert (non-field errors) ── */
.p-alert {
  padding: 10px 14px;
  border: 1px solid rgba(196,30,58,0.4);
  border-radius: var(--radius-input);
  background: rgba(196,30,58,0.08);
  color: var(--red);
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ── Remember / Forgot ── */
.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  margin-top: 4px;
}

.p-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
/* hide default checkbox */
.p-check-input { position: absolute; opacity: 0; width: 0; height: 0; }

.p-check-box {
  width: 16px; height: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.p-check-input:checked + .p-check-box {
  background: var(--red);
  border-color: var(--red);
}
.p-remember-text {
  font-size: 12px;
  color: var(--on-dark-secondary);
}

.p-forgot {
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  transition: opacity 0.15s;
}
.p-forgot:hover { opacity: 0.75; text-decoration: underline; }

/* ── CTA button — 10% red accent ── */
.p-btn {
  width: 100%;
  padding: 13px;
  background: var(--red);
  border: none;
  border-radius: var(--radius-btn);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.p-btn .ti { font-size: 15px; }
.p-btn:hover { background: var(--red-hover); }
.p-btn:active { transform: scale(0.98); }

/* ── Divider ── */
.p-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
}
.p-div-line { flex: 1; height: 1px; background: rgba(255,255,255,0.07); }
.p-div-text { font-size: 11px; color: var(--on-dark-muted); white-space: nowrap; }

/* ── Social buttons ── */
.p-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.p-soc-btn {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-input);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.p-soc-btn .ti { font-size: 15px; }
.p-soc-btn:hover {
  border-color: rgba(196,30,58,0.4);
  color: rgba(255,255,255,0.75);
}

/* ── Footer ── */
.p-footer {
  margin-top: 28px;
  font-size: 11px;
  text-align: center;
  color: var(--on-dark-muted);
  line-height: 1.7;
}
.p-footer a { color: var(--red); text-decoration: none; }
.p-footer a:hover { text-decoration: underline; }


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 820px) {
  body { padding: 0; }
  .p-page {
    grid-template-columns: 1fr;
    border-radius: 0;
    min-height: 100vh;
  }
  .p-left {
    padding: 36px 28px 32px;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .p-right { padding: 36px 28px 40px; }
  .p-headline { font-size: 36px; }
  .p-logo-img { height: 50px; }
}

@media (max-width: 480px) {
  .p-headline { font-size: 30px; }
  .p-logo-name { font-size: 16px; }
  .p-form-title { font-size: 28px; }
  .p-social { grid-template-columns: 1fr; }
}
/* Messages */
.p-msg{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:12px 14px;
    margin-bottom:18px;
    border-radius:8px;
    font-size:12px;
    line-height:1.6;
    border:1px solid;
}

.p-msg i{
    font-size:16px;
    margin-top:1px;
    flex-shrink:0;
}

/* Success */
.p-msg-success{
    background:rgba(22,163,74,.08);
    border-color:rgba(22,163,74,.3);
    color:#16a34a;
}