/* Ln2CRM Marketing Site (Light Theme)
   - All comments and copy in English
   - Accent color based on Ln2CRM extension: #7c5cff
*/

:root{
  --bg: #f6f5ff;
  --bg-elevated: #ffffff;
  --text: #0b1020;
  --muted: #5b6476;
  --border: rgba(124, 92, 255, 0.18);
  --accent: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.16);
  --blue-soft: rgba(66, 133, 244, 0.12);
  --shadow: 0 18px 60px rgba(13, 18, 40, 0.10);
  --shadow-soft: 0 10px 30px rgba(13, 18, 40, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }

/* Utility */
.hidden{ display:none !important; }

body{
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(124,92,255,0.14) 0%, rgba(246,245,255,1) 34%),
    radial-gradient(circle at 80% 14%, rgba(66,133,244,0.10) 0%, rgba(246,245,255,1) 46%),
    var(--bg);
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246,245,255,0.72);
  border-bottom: 1px solid rgba(124,92,255,0.16);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
}
.brand img{
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  color: rgba(11,16,32,0.86);
  font-weight: 600;
  font-size: 14px;
}
.nav a{ opacity: 0.86; }
.nav a:hover{ opacity: 1; }

/* Header dropdown (Product) */
.dd{ position: relative; }

.dd-btn{
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  color: rgba(11,16,32,0.86);
  cursor: pointer;
  opacity: 0.86;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dd-btn:hover{
  opacity: 1;
  background: rgba(124,92,255,0.08);
}
.dd-caret{ font-size: 12px; opacity: 0.8; }

.dd-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(124,92,255,0.18);
  box-shadow: 0 18px 50px rgba(13,18,40,0.12);
  display: none;
}
.dd-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  color: rgba(11,16,32,0.88);
  opacity: 1;
}
.dd-menu a:hover{ background: rgba(124,92,255,0.10); }
.dd.is-open .dd-menu{ display: block; }

.header-actions{
  display:flex;
  gap: 10px;
  align-items:center;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, background-color .12s ease;
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 35px rgba(124,92,255,0.22);
}
.btn-primary:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-secondary{
  background: rgba(255,255,255,0.72);
  border-color: rgba(124,92,255,0.30);
  color: rgba(41, 36, 84, 0.92);
  box-shadow: 0 10px 26px rgba(13,18,40,0.06);
}
.btn-secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(124,92,255,0.44);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,0.10);
  border: 1px solid rgba(124,92,255,0.18);
  color: rgba(41,36,84,0.9);
}

/* Sections */
.section{ padding: 72px 0; }
.section-tight{ padding: 54px 0; }

.card{
  background: var(--bg-elevated);
  border: 1px solid rgba(124,92,255,0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Typography */
.h1{
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}
.h2{
  font-size: clamp(26px, 3.0vw, 36px);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}
.p{
  color: rgba(91,100,118,1);
  font-size: 16px;
  line-height: 1.55;
}

/* Hero */
.hero{ padding: 70px 0 38px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 26px;
  align-items: center;
}

.hero-left .p{ margin-top: 16px; max-width: 52ch; }

.hero-ctas{
  display:flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-micro{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: rgba(91,100,118,1);
  font-size: 13px;
}
.hero-micro span{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(124,92,255,0.12);
}
.hero-micro .dot{
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(124,92,255,0.8);
}

.media-card{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow);
  padding: 14px;
}
.media-card img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  display:block;
}
.media-mini{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.media-mini img{
  border-radius: 16px;
  border: 1px solid rgba(124,92,255,0.12);
}

/* ===== CRM logos block (title left, logos right) ===== */
.logos{
  padding: 26px 20px;
  text-align: left;
}

.logos-top{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.logos-title{
  font-weight: 650;
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  margin-right: auto; /* pushes logos to the right */
}

.crm-logo-img{
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}
.crm-logo-img.is-disabled{
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* Per-logo size tweaks */
.crm-logo-pipedrive{ transform: scale(1.25); transform-origin: center; }
.crm-logo-zoho{ transform: scale(1.50); transform-origin: center; }

.logos-note{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(91,100,118,1);
}
.logos-note a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.logos-note a:hover{ text-decoration: underline; }

/* Value statement */
.value{ text-align:center; }
.section-value{
  padding: 140px 0 72px;
}
.value .p{ max-width: 75ch; margin: 14px auto 0; }
.value .h2{
  max-width: 34ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* Features */
.features-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.feature{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);

  /* было: border: 1px solid rgba(124,92,255,0.14); */
  border: 2px solid rgba(124,92,255,0.55);

  background: rgba(255,255,255,0.82);

  /* было: box-shadow: var(--shadow-soft); */
  box-shadow:
    0 0 0 2px rgba(124,92,255,0.25),
    0 18px 60px rgba(124,92,255,0.18),
    0 0 34px rgba(124,92,255,0.22);
}

.feature:nth-child(even){ grid-template-columns: 0.95fr 1.05fr; }
.feature:nth-child(even) .feature-text{ order: 2; }
.feature:nth-child(even) .feature-media{ order: 1; }

.feature h3{ margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.feature .subtitle{ margin-top: 8px; color: rgba(91,100,118,1); }
.feature ul{
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(11,16,32,0.88);
}
.feature li{ margin: 10px 0; line-height: 1.45; }
.feature-media{
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-media img{
  width: 80%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 2px solid rgba(124,92,255,0.45);   /* тонкая фиолетовая рамка */
  box-shadow: 0 0 0 3px rgba(124,92,255,0.10); /* мягкая подсветка (по желанию) */
}


/* Calculator */
.calc{
  padding: 22px;
  border-radius: var(--radius-lg);
}
.calc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.calc-left-top{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 12px;
}
.slider-row{ margin-bottom: 14px; }
.slider-row label{
  display:flex;
  justify-content:space-between;
  font-weight: 800;
  font-size: 13px;
}
.slider-row .hint{
  color: rgba(91,100,118,1);
  font-size: 12px;
  margin-top: 6px;
}
input[type="range"]{ width:100%; accent-color: var(--accent); }

.calc-results{
  display:grid;
  gap: 12px;
  align-content: start;
}
.kpi{
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(124,92,255,0.06);
}
.kpi .kpi-label{
  color: rgba(91,100,118,1);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.kpi .kpi-value{
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.kpi .kpi-sub{
  margin-top: 6px;
  color: rgba(91,100,118,1);
  font-size: 13px;
}

/* Pricing */
.toggle{
  display:inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,0.18);
  background: rgba(255,255,255,0.78);
}
.toggle button{
  border: none;
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  color: rgba(91,100,118,1);
}
.toggle button.active{
  background: rgba(124,92,255,0.14);
  color: rgba(41,36,84,0.92);
}

/* Pricing header (centered like LinkMatch) */
.pricing-head{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.pricing-title{
  max-width: 22ch;
  margin: 0 auto;
  text-wrap: balance;
}
.pricing-sub{
  max-width: 72ch;
  margin: 0 auto;
  text-wrap: balance;
}
.pricing-switches{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.toggle-period{
  padding: 8px;
  gap: 10px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13,18,40,0.06);
}
.toggle-period button{
  padding: 12px 22px;
  font-size: 15px;
}
.toggle-currency{ padding: 6px; gap: 8px; }
.toggle-currency button{ padding: 10px 16px; font-size: 14px; }

.save-pill{
  margin-left: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  color: rgba(41,36,84,0.95);
  border: 1px solid rgba(124, 92, 255, 0.18);
  vertical-align: middle;
}

.plans{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.plan{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(124,92,255,0.16);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
  display:flex;
  flex-direction: column;
}
.plan.featured{
  border-color: rgba(124,92,255,0.36);
  box-shadow: 0 18px 60px rgba(124,92,255,0.12);
}
.plan h4{ margin: 0; font-size: 16px; font-weight: 900; }
.price{
  margin-top: 10px;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.price small{
  font-size: 14px;
  font-weight: 800;
  color: rgba(91,100,118,1);
}
.price-contact{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.plan .desc{
  margin-top: 8px;
  color: rgba(91,100,118,1);
  font-size: 13px;
  line-height: 1.5;
}
.limits{
  margin-top: 14px;
  padding: 0;
  list-style:none;
}
.limits li{
  padding: 8px 0;
  border-top: 1px solid rgba(124,92,255,0.10);
  font-size: 13px;
}
.limits b{ color: rgba(41,36,84,0.92); }
.plan .cta{ margin-top: 14px; }
.plan .cta .btn{ width: 100%; }

/* Pricing: make all plan CTA buttons purple */
.plans .plan .cta .btn{
  background: var(--accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 14px 35px rgba(124,92,255,0.22) !important;
}
.plans .plan .cta .btn:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
}
.plans .plan .cta .btn:active{ transform: translateY(0); }

.request-box{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(66,133,244,0.06);
  color: rgba(11,16,32,0.86);
  font-size: 13px;
}
.request-box b{ color: rgba(41,36,84,0.92); }

/* CTA block */
.cta-block{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124,92,255,0.16);
  background: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(66,133,244,0.12));
  box-shadow: var(--shadow);
  padding: 26px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 18px;
}
.cta-block h3{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.cta-block .p{ margin: 10px 0 0; }
.cta-points{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cta-points span{
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(124,92,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(91,100,118,1);
}

/* ===== Testimonials (carousel) ===== */

.testimonial-band{
  margin-top: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(124,92,255,0.78));
  box-shadow: 0 24px 70px rgba(124,92,255,0.20);
  border: 1px solid rgba(124,92,255,0.22);
  position: relative;
  overflow: hidden;
}

/* Arrows */
.t-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.18);
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.t-nav:hover{ background: rgba(255,255,255,0.26); }
.t-nav:active{ transform: translateY(-50%) scale(0.98); }
.t-prev{ left: 14px; }
.t-next{ right: 14px; }

.t-viewport{
  overflow: hidden;
  padding: 6px 56px; /* space for arrows */
}

.t-track{
  display: flex;
  gap: 14px;
  transition: transform 280ms ease;
  will-change: transform;
}

/* Card shell */
.t-card{
  flex: 0 0 calc((100% - 28px) / 3); /* 3 visible on desktop */
  padding: 0;               /* padding inside .t-inner */
  border-radius: 22px;
  background: transparent;  /* IMPORTANT */
}

/* REAL card look: opaque base + CTA gradient on top */
.t-inner{
  height: 100%;
  padding: 18px;
  border-radius: 22px;

  /* 1) solid-ish light base so purple band DOES NOT bleed through */
  /* 2) CTA gradient on top */
  background:
    linear-gradient(135deg, rgba(124,92,255,0.18), rgba(66,133,244,0.12)),
    rgba(246,245,255,0.92);

  border: 1px solid rgba(255,255,255,0.30);
  box-shadow: 0 12px 30px rgba(13,18,40,0.10);
}

.t-inner p{
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-weight: 650;
}

.t-inner .who{
  margin-top: 12px;
  color: rgba(11,16,32,0.72);
  font-size: 13px;
  font-weight: 900;
}

/* Responsive for carousel */
@media (max-width: 980px){
  .t-card{ flex: 0 0 calc((100% - 14px) / 2); } /* 2 visible */
}

@media (max-width: 520px){
  .t-viewport{ padding: 6px 12px; }
  .t-nav{ display: none; } /* swipe on mobile */
  .t-track{ overflow-x: auto; scroll-snap-type: x mandatory; }
  .t-card{ flex: 0 0 86%; scroll-snap-align: start; }
}



/* Blog preview */
.blog-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.post-card{
  border-radius: 22px;
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(255,255,255,0.86);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-thumb{ width: 100%; background: rgba(66,133,244,0.10); }
.post-thumb img{ width: 100%; height: auto; display:block; }
.post-body{ padding: 18px; }
.post-card h4{ margin:0; font-size: 16px; letter-spacing: -0.01em; }
.post-card p{ margin: 10px 0 0; color: rgba(91,100,118,1); line-height: 1.55; }
.read-more{
  margin-top: 14px;
  color: rgba(124,92,255,0.95);
  font-weight: 900;
}
.post-card:hover .read-more{ text-decoration: underline; }

/* Modal system */
.modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 5, 9, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

/* FAQ */
.faq{ margin-top: 18px; }
.faq details{
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(255,255,255,0.86);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.faq details + details{ margin-top: 10px; }
.faq summary{ cursor: pointer; font-weight: 900; }
.faq .ans{
  margin-top: 10px;
  color: rgba(91,100,118,1);
  line-height: 1.6;
}

/* Footer */
.footer{
  padding: 34px 0;
  border-top: 1px solid rgba(124,92,255,0.14);
  background: rgba(246,245,255,0.65);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}
.footer small{ color: rgba(91,100,118,1); }
.footer a{ color: rgba(11,16,32,0.82); opacity: 0.9; }
.footer a:hover{ opacity: 1; }
.footer .col h5{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(41,36,84,0.88);
}
.footer .links{
  display:grid;
  gap: 8px;
  font-size: 14px;
}

/* Blog article layout */
.article{
  padding: 34px;
  border-radius: var(--radius-lg);
}
.article h1{ margin: 0; font-size: 40px; letter-spacing: -0.02em; }
.article h2{ margin-top: 28px; font-size: 22px; }
.article p{ color: rgba(91,100,118,1); line-height: 1.75; font-size: 16px; }
.article ul{ color: rgba(11,16,32,0.88); line-height: 1.7; }
.article .meta{
  margin-top: 10px;
  color: rgba(91,100,118,1);
  font-weight: 800;
  font-size: 13px;
}
.article .callout{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(124,92,255,0.14);
  background: rgba(124,92,255,0.06);
  color: rgba(11,16,32,0.90);
}

/* Inline logos inside headings */
.inline-logo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-block;
  vertical-align: middle;
}
.inline-logo-chrome{ vertical-align: -0.20em; }
.inline-logo-ln2crm{ vertical-align: -0.22em; }

/* =========================================================
   Responsive (grouped at the end)
   ========================================================= */

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .feature{ grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-text{ order: 1; }
  .feature:nth-child(even) .feature-media{ order: 2; }
  .calc-grid{ grid-template-columns: 1fr; }
  .plans{ grid-template-columns: repeat(2, 1fr); }
  .testimonials{ grid-template-columns: 1fr; }
  .blog-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-block{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px){
  .crm-logo-img{ height: 54px; }
  .logos-title{ white-space: normal; }
  .logos-top{ align-items: flex-start; }
}

@media (max-width: 520px){
  .nav{ display:none; }
  .hero{ padding-top: 54px; }
  .plans{ grid-template-columns: 1fr; }
  .article{ padding: 20px; }
  .article h1{ font-size: 30px; }
}



/* =========================
   Header account menu
   ========================= */
.dd-account{ margin-left: 10px; }
.dd-btn-account{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124,92,255,0.18);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-weight: 650;
}
.dd-account.is-open .dd-btn-account{
  box-shadow: 0 10px 26px rgba(124,92,255,0.18);
}


/* =========================
   Auth pages (login/register)
   Scoped to .auth-wrap/.auth-card to avoid affecting the landing page.
   ========================= */

.auth-wrap{
  min-height: calc(100vh - 84px);
  padding: 42px 18px 60px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.auth-card{
  width: min(520px, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(124, 92, 255, 0.18);
  box-shadow: var(--shadow-soft);
  border-radius: 26px;
  padding: 28px 26px;
  backdrop-filter: blur(10px);
}

.auth-brand{
  display:flex;
  align-items:center;
  gap: 12px;
  justify-content:center;
  margin-bottom: 6px;
}
.auth-brand img{ width: 46px; height: 46px; }

.auth-slogan{
  text-align:center;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
}

.auth-msg{
  display:none;
  margin: 0 0 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(124, 92, 255, 0.18);
  background: rgba(124, 92, 255, 0.08);
  color: var(--text);
}

.auth-field{ margin: 14px 0; }
.auth-field label{
  display:block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.auth-field input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(124, 92, 255, 0.22);
  background: rgba(255,255,255,0.70);
  outline: none;
  font-size: 16px;
}
.auth-field input:focus{
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.auth-actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
}
.auth-actions .btn{ flex: 1; }

.auth-divider{
  margin: 18px 0 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  justify-content:center;
}
.auth-divider:before,
.auth-divider:after{
  content:"";
  height: 1px;
  flex: 1;
  background: rgba(124, 92, 255, 0.18);
}

.btn-oauth{
  width:100%;
  justify-content:center;
  gap: 10px;
  margin-top: 12px;
}
.oauth-icon{
  width: 22px;
  height: 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.oauth-icon svg{ width: 22px; height: 22px; display:block; }

.auth-links{
  margin-top: 16px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.auth-links a{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .85;
}
.auth-links a:hover{ opacity: 1; }

@media (max-width: 520px){
  .auth-wrap{ padding: 28px 14px 44px; }
  .auth-card{ padding: 22px 18px; border-radius: 22px; }
  .auth-actions{ flex-direction: column; }
}

