/* =========================================================================
   Pori AI — Premium white SaaS design system
   Aesthetic: bone-white background, deep indigo accent, serif display
   ========================================================================= */

:root {
  /* Palette */
  --bg:           #FAFAF7;
  --bg-elev:     #FFFFFF;
  --surface:     #F2F1EC;
  --line:        #E6E4DC;
  --line-strong: #D1CFC4;
  --ink:         #14131A;
  --ink-soft:    #4A4858;
  --muted:       #8B8898;

  --brand:       #4F3BFF;          /* deep indigo */
  --brand-soft:  #EAE6FF;
  --brand-deep:  #2B1FAB;
  --accent:      #E94E4E;          /* sparing warm accent */
  --success:     #16A34A;
  --warning:     #D97706;
  --danger:      #DC2626;

  /* Typography */
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 19, 26, 0.04), 0 1px 3px rgba(20, 19, 26, 0.06);
  --shadow:    0 4px 8px rgba(20, 19, 26, 0.04), 0 12px 32px rgba(20, 19, 26, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 19, 26, 0.10);

  --container: 1200px;
  --header-h:  72px;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container { width:100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.4em; color: var(--ink); }
h1 { font-size: clamp(40px, 6.5vw, 80px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: 22px; }
h5 { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }

p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.brand-mark { font-size: 22px; color: var(--brand); transform: translateY(-1px); }
.brand-name { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.nav-links { margin-left: 12px; display: flex; gap: 28px; flex: 1; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  body.nav-open .nav-links {
    display: flex; flex-direction: column; gap: 12px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg-elev); padding: 20px 24px; border-bottom: 1px solid var(--line);
  }
  body.nav-open .nav-cta {
    display: flex; flex-direction: column;
    position: absolute; top: calc(var(--header-h) + 200px); left: 0; right: 0;
    padding: 0 24px 20px; background: var(--bg-elev);
  }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary  { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline  { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost    { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-accent   { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(79,59,255,.25); }
.btn-accent:hover { background: var(--brand-deep); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-block    { display: flex; width: 100%; }
.btn-sm       { padding: 6px 12px; font-size: 13px; }
.btn-lg       { padding: 14px 26px; font-size: 16px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative; padding: clamp(64px,10vw,140px) 0 80px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(79,59,255,.10), transparent 70%),
    radial-gradient(50% 50% at 80% 30%, rgba(233,78,78,.06), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero h1 { max-width: 900px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero-lead {
  max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); margin: 16px 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  color: var(--muted); font-size: 13px;
}
.hero-mock {
  margin-top: 60px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-mock-window {
  background: var(--surface); border-radius: var(--radius);
  padding: 14px 16px 18px; min-height: 280px; position: relative;
}
.hero-mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.hero-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.hero-mock-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-mock-card h6 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.hero-mock-card .pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); align-self: flex-start; font-weight: 600; }

/* =========================================================================
   Section
   ========================================================================= */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.section.tinted { background: var(--surface); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .muted, .section.dark p { color: rgba(255,255,255,.7); }

/* =========================================================================
   Feature grid
   ========================================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-deep);
  display: grid; place-items: center; font-size: 22px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 26px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px;
  background: var(--surface); border-radius: 999px; margin: 0 auto 40px;
}
.pricing-toggle button {
  background: transparent; border: 0; padding: 8px 18px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.pricing-toggle button.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-sm); }
.pricing-toggle .save { color: var(--success); font-size: 12px; margin-left: 4px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column;
  position: relative;
}
.price-card.featured {
  background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured h3, .price-card.featured .price-amount { color: #fff; }
.price-card.featured p, .price-card.featured .price-period { color: rgba(255,255,255,.7); }
.price-card.featured ul li { color: rgba(255,255,255,.85); }
.price-card.featured ul li::before { color: #fff; }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em;
}
.price-card h3 { font-size: 24px; margin: 0; }
.price-card .price-tagline { color: var(--ink-soft); font-size: 14px; margin: 4px 0 18px; }
.price-amount { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--ink); }
.price-period { color: var(--muted); font-size: 14px; margin-left: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; }
.price-card ul li {
  padding: 8px 0 8px 26px; position: relative;
  border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft);
}
.price-card.featured ul li { border-color: rgba(255,255,255,.15); }
.price-card ul li:last-child { border-bottom: 0; }
.price-card ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--brand); font-weight: 700;
}
.price-card .btn { margin-top: auto; }

/* =========================================================================
   Auth pages
   ========================================================================= */
.auth-wrap {
  min-height: calc(100vh - var(--header-h)); display: grid; place-items: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 36px; margin-bottom: 6px; }
.auth-card p.muted { margin-bottom: 28px; }

.form-row { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }

/* =========================================================================
   Flash messages
   ========================================================================= */
.flash { padding: 12px 0; font-size: 14px; }
.flash-success { background: #ECFDF5; color: #065F46; border-bottom: 1px solid #A7F3D0; }
.flash-error   { background: #FEF2F2; color: #991B1B; border-bottom: 1px solid #FECACA; }
.flash-info    { background: var(--brand-soft); color: var(--brand-deep); border-bottom: 1px solid #C7BFFF; }
.flash-warning { background: #FFFBEB; color: #92400E; border-bottom: 1px solid #FDE68A; }

/* =========================================================================
   Dashboard / app shell (logged-in user)
   ========================================================================= */
.app-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); }
.app-side {
  background: var(--bg-elev); border-right: 1px solid var(--line);
  padding: 28px 18px; display: flex; flex-direction: column; gap: 6px;
}
.app-side a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px; text-decoration: none;
}
.app-side a:hover { background: var(--surface); color: var(--ink); }
.app-side a.active { background: var(--ink); color: #fff; }
.app-main { padding: 32px 36px; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.app-header h1 { font-size: 36px; margin: 0; }
.credit-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-weight: 600; font-size: 14px;
}
@media (max-width: 880px) {
  .app-wrap { grid-template-columns: 1fr; }
  .app-side { flex-direction: row; overflow-x: auto; padding: 14px; }
  .app-main { padding: 24px 18px; }
}

/* Cards used in dashboards / tool pages */
.card {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 20px; }
.card h2 { font-size: 28px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .cards-2, .cards-3 { grid-template-columns: 1fr; } }

.kpi { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kpi .kpi-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.kpi .kpi-value { font-family: var(--font-display); font-size: 40px; line-height: 1; }

/* =========================================================================
   Tables
   ========================================================================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 12px 16px; text-align: left; }
table.data thead { background: var(--surface); }
table.data th { font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
table.data tbody tr { border-top: 1px solid var(--line); }
table.data tbody tr:hover { background: var(--surface); }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.green  { background: #DCFCE7; color: #166534; }
.badge.red    { background: #FEE2E2; color: #991B1B; }
.badge.gray   { background: var(--surface); color: var(--ink-soft); }
.badge.brand  { background: var(--brand-soft); color: var(--brand-deep); }

/* =========================================================================
   Admin shell
   ========================================================================= */
.admin-body { background: var(--surface); }
.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
  background: var(--bg-elev); border-right: 1px solid var(--line);
  padding: 24px 18px; display: flex; flex-direction: column; gap: 8px;
}
.admin-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px; margin-bottom: 16px; }
.admin-brand .brand-mark { color: var(--brand); font-size: 20px; }
.admin-brand span { font-family: var(--font-display); font-size: 22px; }
.admin-brand small { background: var(--brand-soft); color: var(--brand-deep); font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 700; margin-left: auto; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: 14.5px; text-decoration: none;
}
.admin-nav a:hover { background: var(--surface); color: var(--ink); }
.admin-nav a.active { background: var(--ink); color: #fff; }
.admin-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-main { margin-left: 240px; padding: 32px 36px; min-height: 100vh; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.admin-page-head h1 { font-size: 32px; margin: 0; }
@media (max-width: 880px) {
  .admin-sidebar { position: static; width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
  .admin-nav { flex-direction: row; }
  .admin-bottom { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }
}

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-q { display: flex; justify-content: space-between; cursor: pointer; font-family: var(--font-display); font-size: 22px; }
.faq-q::after { content: "+"; color: var(--brand); font-family: var(--font-body); }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-item p { margin-top: 10px; color: var(--ink-soft); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; background: var(--bg-elev); margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .muted { max-width: 260px; }
.site-footer a { display: block; color: var(--ink-soft); padding: 4px 0; font-size: 14px; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   Template gallery
   ========================================================================= */
.tpl-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tpl-tabs a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink-soft); font-weight: 600; font-size: 13px; text-decoration: none;
}
.tpl-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tpl-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); display: grid; place-items: center; font-family: var(--font-display); font-size: 38px; color: var(--brand-deep); }
.tpl-body { padding: 18px; }
.tpl-body h4 { font-family: var(--font-body); font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.tpl-body .muted { font-size: 13px; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .8s ease both; }
.fade-up-d1 { animation: fadeUp .8s ease .1s both; }
.fade-up-d2 { animation: fadeUp .8s ease .2s both; }
.fade-up-d3 { animation: fadeUp .8s ease .3s both; }

/* Accessibility */
:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================================
   Admin login final compatibility fix
   ========================================================================= */
.auth-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at top left, rgba(124, 92, 255, .10), transparent 34%), var(--surface, #F7F7FB);
  color: var(--ink, #111118);
  font-family: var(--font-body, 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}
.auth-shell .auth-brand,
.auth-brand {
  position: fixed;
  top: 22px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink, #111118);
  font-weight: 700;
}
.auth-shell .auth-card {
  width: min(440px, calc(100vw - 36px));
}
.form-stack {
  display: grid;
  gap: 16px;
}
.form-stack label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #111118);
}
.form-stack input,
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 13px 14px;
  border-radius: var(--radius-sm, 12px);
  border: 1px solid var(--line-strong, #D8D7E2);
  background: #fff;
  color: var(--ink, #111118);
}
.form-stack input:focus,
.auth-card input:focus {
  outline: none;
  border-color: var(--brand, #7C5CFF);
  box-shadow: 0 0 0 3px var(--brand-soft, rgba(124, 92, 255, .14));
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.auth-foot {
  position: fixed;
  left: 22px;
  bottom: 18px;
}
.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0;
  border: 1px solid transparent;
}
.flash-error {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #FECACA;
}
.flash-success {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}
@media (max-width: 640px) {
  .auth-shell .auth-brand,
  .auth-brand,
  .auth-foot { position: static; }
  .auth-shell { place-items: start center; align-content: center; }
}
