/* Web Clipping — Login */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --blue:      #1D388C;
  --blue-dk:   #162d74;
  --blue-lt:   #2a4fba;
  --green:     #6CA043;
  --acqua:     #BEE2D3;
  --text:      #0f172a;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #f1f5f9;
  --white:     #ffffff;
}

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

html, body { height: 100%; }

body {
  font-family: 'Inter', 'Calibri', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
}

/* ── Layout ──────────────────────────────────────────────────────────────── */

.login-layout {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100svh;
}

/* ── Brand panel (left) ──────────────────────────────────────────────────── */

.brand-panel {
  position: relative;
  background-color: var(--blue);
  /* Dot-grid texture */
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
}

/* Large decorative circle — top right */
.brand-panel::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -160px;
  right: -160px;
  pointer-events: none;
}

/* Medium accent circle — bottom left (verde Necto) */
.brand-panel::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(108,160,67,.18);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.brand-inner {
  position: relative;
  z-index: 1;
  max-width: 22rem;
}

/* "W" mark */
.brand-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.75rem;
}

.brand-product {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}

.brand-tagline {
  font-size: .875rem;
  color: var(--acqua);
  letter-spacing: .01em;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.brand-divider {
  width: 2rem;
  height: 2px;
  background: rgba(255,255,255,.2);
  margin-bottom: 2rem;
}

.brand-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.brand-features li {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}

.brand-features li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: .1em;
  border-radius: 50%;
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Form panel (right) ──────────────────────────────────────────────────── */

.form-panel {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.form-wrap {
  width: 100%;
  max-width: 22rem;
}

/* Mobile-only brand row (hidden on desktop) */
.form-brand-mobile {
  display: none;
  align-items: center;
  gap: .625rem;
  margin-bottom: 2rem;
}
.form-brand-mobile .m-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .875rem;
}
.form-brand-mobile .m-name { font-weight: 600; font-size: .9375rem; }
.form-brand-mobile .m-sub  { font-size: .75rem; color: var(--muted); }

/* Form heading */
.form-title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .375rem;
}
.form-lead {
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgb(0 0 0 / .06), 0 1px 3px rgb(0 0 0 / .04);
}

/* Fields */
.field { display: flex; flex-direction: column; gap: .3125rem; margin-bottom: 1.125rem; }

.field label {
  font-size: .8125rem;
  font-weight: 500;
  color: #334155;
}

.field input {
  height: 2.625rem;
  padding: 0 .875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .875rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(29 56 140 / .1);
}
.field input::placeholder { color: #c0cad8; }

/* Forgot password (inside card, right-aligned) */
.field-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -.5rem;
  margin-bottom: 1.25rem;
}
.field-actions a {
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.field-actions a:hover { color: var(--blue); }

/* Submit button */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  height: 2.75rem;
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-login:hover  { background: var(--blue-dk); }
.btn-login:active { transform: scale(.99); }

.btn-arrow {
  font-size: 1.1em;
  line-height: 1;
  transition: transform .2s;
}
.btn-login:hover .btn-arrow { transform: translateX(3px); }

/* ── Social auth buttons ─────────────────────────────────────────────────── */

.social-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .625rem;
  margin-bottom: 1.375rem;
}

.btn-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .625rem .5rem;
  background: var(--white);
  border: 1px solid #d1d8e4;
  border-radius: 8px;
  font-family: inherit;
  font-size: .6875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  line-height: 1.2;
}
.btn-social:hover {
  border-color: #a8b8d0;
  background: #f7f9ff;
  box-shadow: 0 1px 4px rgb(0 0 0 / .07);
}
.btn-social svg { display: block; flex-shrink: 0; }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.375rem;
  color: #c0cad8;
  font-size: .75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Bottom footnote */
.form-footnote {
  margin-top: 1.5rem;
  text-align: center;
  font-size: .75rem;
  color: #94a3b8;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .brand-panel { display: none; }
  .form-panel  { padding: 2rem 1.25rem; }
  .form-brand-mobile { display: flex; }
}
