/* ============================================================
   main.css — Offera — Toplo Premium Redesign
   ============================================================ */

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

:root {
  --cream:        #FBF7F2;
  --cream-2:      #F5EFE6;
  --cream-3:      #EDE5D8;
  --cream-4:      #FAF7F3;
  --white:        #ffffff;
  --terra:        #C8623A;
  --terra-dark:   #B85530;
  --terra-light:  #F0E4D8;
  --terra-pale:   #FDF0EA;
  --ink:          #1E1208;
  --ink-2:        #3D2B1A;
  --muted:        #7A6248;
  --muted-2:      #9B8060;
  --muted-3:      #B09878;
  --border:       rgba(180,150,110,0.2);
  --border-2:     rgba(180,150,110,0.35);
  --shadow-sm:    0 2px 8px rgba(80,40,10,0.06);
  --shadow-md:    0 4px 20px rgba(80,40,10,0.09);
  --shadow-lg:    0 12px 40px rgba(80,40,10,0.12);
  --shadow-xl:    0 20px 60px rgba(80,40,10,0.14);
  --radius-sm:    10px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  100px;
  --font:         'DM Sans', -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --grad-terra:   linear-gradient(135deg, #D4724A, #B85530);
  --grad-cream:   linear-gradient(160deg, #FDF6EF 0%, #FBF7F2 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--cream); color: var(--ink); min-height: 100vh; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* ── Logo ── */
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; background: var(--grad-terra); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 3px 10px rgba(180,70,40,0.25); }
.logo-mark svg { width: 18px; height: 18px; }
.logo-text-wrap { display: flex; flex-direction: column; gap: 0; line-height: 1; }
.logo-name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.logo-tagline { font-size: 9px; color: var(--muted-3); letter-spacing: .06em; font-weight: 400; text-transform: uppercase; margin-top: 2px; }

/* ── Header ── */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: flex; background: var(--cream-2); border: 1px solid var(--border-2); border-radius: var(--radius-full); padding: 3px; gap: 2px; }
.lang-btn { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: var(--radius-full); border: none; background: transparent; color: var(--muted-2); cursor: pointer; transition: all .15s; font-family: var(--font); }
.lang-btn.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-link { font-size: 13px; font-weight: 500; color: var(--muted); padding: 7px 14px; border-radius: var(--radius-full); border: 1.5px solid transparent; background: none; cursor: pointer; transition: all .15s; font-family: var(--font); }
.nav-link:hover { color: var(--ink); background: var(--cream-2); }
.nav-btn { font-size: 13px; font-weight: 600; color: var(--white); padding: 8px 18px; border-radius: var(--radius-full); border: none; background: var(--grad-terra); cursor: pointer; font-family: var(--font); box-shadow: 0 3px 12px rgba(180,70,40,0.28); transition: all .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(180,70,40,0.35); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-full); border: none; font-family: var(--font); font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--grad-terra); color: var(--white); box-shadow: 0 4px 16px rgba(180,70,40,0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(180,70,40,0.36); }
.btn-secondary { background: var(--white); color: var(--ink-2); border: 1.5px solid var(--border-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--muted-3); background: var(--cream-4); }
.btn-full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.form-label .req { color: var(--terra); margin-left: 2px; }
.form-input { width: 100%; padding: 11px 16px; border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font-family: var(--font); font-size: .925rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-input:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(200,98,58,0.1); }
.form-input::placeholder { color: #C4B09A; }
.form-hint { font-size: .775rem; color: var(--muted-2); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--terra); cursor: pointer; flex-shrink: 0; }
.checkbox-group label { font-size: .9rem; font-weight: 500; cursor: pointer; color: var(--ink-2); }

/* ── Card ── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ── Auth pages ── */
.auth-page { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--grad-cream); }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 40px; }
.auth-card-wide { max-width: 620px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-title { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; text-align: center; margin-bottom: 6px; color: var(--ink); letter-spacing: -.02em; }
.auth-sub { text-align: center; color: var(--muted-2); font-size: .9rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider { text-align: center; font-size: .85rem; color: var(--muted-2); margin-top: 20px; }
.auth-divider a { color: var(--terra); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; display: none; }
.alert-error { background: #FDF0EA; color: #8B3015; border: 1px solid rgba(200,98,58,0.25); }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }

/* ── Section divider ── */
.section-divider { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.section-divider-line { flex: 1; height: 1px; background: var(--border-2); }
.section-divider-text { font-size: .72rem; font-weight: 600; color: var(--muted-3); text-transform: uppercase; letter-spacing: .06em; }

/* ── Success ── */
.success-box { text-align: center; padding: 20px 0; }
.success-icon { width: 64px; height: 64px; background: var(--terra-pale); border: 2px solid var(--terra-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; }
.success-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.success-msg { color: var(--muted-2); font-size: .9rem; line-height: 1.6; margin-bottom: 24px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 24px 40px; text-align: center; font-size: .8rem; color: var(--muted-3); background: var(--white); }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .35s ease; }

@media (max-width: 640px) {
  .header { padding: 0 20px; }
  .auth-card { padding: 28px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer { padding: 20px; }
}
