:root {
  color-scheme: light;
  --page: #f3f7f3;
  --surface: #fff;
  --ink: #17221e;
  --muted: #69756f;
  --line: #e3eae4;
  --accent: #176b4d;
  --accent-dark: #10583e;
  --accent-pale: #eaf3ed;
  --shadow: 0 24px 70px rgb(24 43 34 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111915;
  --surface: #1a241e;
  --ink: #e8efe9;
  --muted: #a0ada4;
  --line: #303d35;
  --accent: #6bc49a;
  --accent-dark: #4aa77a;
  --accent-pale: #243d30;
  --shadow: 0 24px 70px rgb(0 0 0 / 32%);
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.auth-shell { width: min(100% - 40px, 1120px); margin: 0 auto; }
.auth-header { position: relative; z-index: 1; height: 76px; }
.auth-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; }
.auth-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 650; }
.auth-nav a { text-decoration: none; transition: color .2s ease; }
.auth-nav a:hover { color: var(--accent); }
.auth-preferences { display: flex; align-items: center; gap: 7px; }
.language-select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 12px; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; transition: transform .2s, border-color .2s; }
.theme-toggle:hover { transform: rotate(-12deg); border-color: var(--accent); }
.auth-background { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, #fff 0%, #f6faf6 38%, #e9f2eb 100%); }
:root[data-theme="dark"] .auth-background { background: radial-gradient(ellipse at 50% 42%, #1c2a21 0%, #141e18 42%, #101713 100%); }
.orb { position: absolute; width: 420px; height: 420px; border: 1px solid rgb(23 107 77 / 9%); border-radius: 50%; animation: orbit 24s linear infinite; }
.orb::before, .orb::after { position: absolute; inset: 32px; border: 1px solid rgb(23 107 77 / 7%); border-radius: 50%; content: ""; }
.orb::after { inset: 74px; }
.orb-one { top: 21%; left: -175px; }
.orb-two { right: -200px; bottom: -180px; width: 560px; height: 560px; animation-direction: reverse; animation-duration: 32s; }
.auth-glow { position: absolute; top: 18%; left: 50%; width: 420px; height: 420px; transform: translateX(-50%); border-radius: 50%; background: rgb(194 226 204 / 30%); filter: blur(80px); animation: breathe 6s ease-in-out infinite; }
.auth-main { position: relative; z-index: 1; min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 20px 0 70px; }
.login-card { width: min(100%, 430px); padding: 38px 38px 30px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 24px; background: rgb(255 255 255 / 82%); box-shadow: var(--shadow); backdrop-filter: blur(18px); animation: card-enter .75s cubic-bezier(.2,.8,.2,1) both; }
:root[data-theme="dark"] .login-card, :root[data-theme="dark"] .package-card { border-color: rgb(255 255 255 / 8%); background: rgb(26 36 30 / 88%); }
.login-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid #e3eee6; border-radius: 18px; background: linear-gradient(145deg, #fff, #eef6ef); color: var(--accent); box-shadow: 0 8px 18px rgb(23 107 77 / 10%); }
.login-icon svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .login-icon { border-color: var(--line); background: linear-gradient(145deg, #26352c, #1a241e); }
.auth-eyebrow { margin: 0 0 9px; color: var(--accent); text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-card h1 { margin: 0; text-align: center; font-size: clamp(26px, 6vw, 32px); line-height: 1.15; letter-spacing: -.045em; }
.auth-copy { margin: 11px auto 26px; color: var(--muted); text-align: center; font-size: 14px; }
.auth-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.password-wrap { position: relative; }
.password-input { width: 100%; height: 54px; padding: 0 82px 0 15px; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: var(--page); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.password-input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px rgb(23 107 77 / 11%); }
.password-toggle { position: absolute; top: 0; right: 4px; height: 54px; padding: 0 11px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.password-toggle:hover { color: var(--accent); }
.auth-error { min-height: 21px; margin: 8px 0 4px; color: #a33c35; font-size: 12px; }
.auth-submit { position: relative; width: 100%; height: 52px; overflow: hidden; border: 0; border-radius: 11px; background: linear-gradient(110deg, #10583e, #1d7957); color: #fff; font-weight: 720; cursor: pointer; box-shadow: 0 8px 18px rgb(16 88 62 / 18%); transition: transform .2s, box-shadow .2s; }
.auth-submit::after { position: absolute; top: -50%; left: -65%; width: 36%; height: 200%; transform: rotate(25deg); background: rgb(255 255 255 / 22%); content: ""; transition: left .5s ease; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgb(16 88 62 / 24%); }
.auth-submit:hover::after { left: 130%; }
.auth-submit:disabled { cursor: wait; opacity: .7; }
.auth-divider { height: 1px; margin: 22px 0 17px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.auth-foot { margin: 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-foot a { color: var(--accent); font-weight: 750; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-safe { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 21px; color: #77847c; font-size: 11px; }
.auth-safe svg { color: var(--accent); }

.packages-main { position: relative; z-index: 1; padding: 38px 0 90px; }
.packages-intro { max-width: 660px; margin: 0 auto 30px; text-align: center; animation: card-enter .65s both; }
.packages-intro .auth-eyebrow { margin-bottom: 12px; }
.packages-intro h1 { margin: 0; font-size: clamp(32px, 6vw, 48px); line-height: 1.08; letter-spacing: -.05em; }
.packages-intro p:last-child { max-width: 520px; margin: 14px auto 0; color: var(--muted); }
.package-card { position: relative; width: min(100%, 470px); margin: 0 auto; padding: 30px; overflow: hidden; border: 1px solid rgb(255 255 255 / 92%); border-radius: 22px; background: rgb(255 255 255 / 87%); box-shadow: var(--shadow); backdrop-filter: blur(16px); animation: card-enter .75s .1s both; transition: transform .25s, box-shadow .25s; }
.package-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgb(24 43 34 / 16%); }
.package-card::before { position: absolute; top: -100px; right: -90px; width: 230px; height: 230px; border-radius: 50%; background: rgb(234 243 237 / 75%); content: ""; }
:root[data-theme="dark"] .package-card::before { background: rgb(62 111 79 / 18%); }
.package-heading { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.package-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.package-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.package-pill { position: relative; padding: 6px 10px; border-radius: 999px; background: var(--accent-pale); color: var(--accent); font-size: 11px; font-weight: 780; white-space: nowrap; }
.package-price { display: flex; align-items: baseline; gap: 4px; margin: 28px 0 0; font-size: 48px; font-weight: 780; letter-spacing: -.06em; line-height: 1; }
.package-price span { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.package-note { margin: 9px 0 22px; color: var(--muted); font-size: 12px; }
.package-buy { position: relative; width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 11px; background: #142a21; color: #fff; font-weight: 720; text-decoration: none; transition: background .2s, transform .2s; }
.package-buy:hover { transform: translateY(-2px); background: var(--accent); }
.package-features { margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 13px; }
.package-features li { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.package-features svg { flex: 0 0 auto; color: var(--accent); }
.package-contact { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.packages-back { display: block; width: fit-content; margin: 22px auto 0; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: color .2s; }
.packages-back:hover { color: var(--accent); }
.auth-footer { position: relative; z-index: 1; padding: 20px 0; color: var(--muted); text-align: center; font-size: 11px; }
@keyframes card-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes breathe { 0%, 100% { opacity: .55; transform: translateX(-50%) scale(.94); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .auth-shell { width: min(100% - 28px, 1120px); }
  .auth-header { height: 66px; }
  .auth-nav { gap: 15px; font-size: 12px; }
  .auth-preferences { gap: 5px; }
  .language-select { padding: 0 5px; }
  .auth-main { min-height: calc(100vh - 66px); padding: 18px 0 44px; }
  .login-card { padding: 30px 23px 24px; border-radius: 20px; }
  .packages-main { padding: 32px 0 58px; }
  .package-card { padding: 24px 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
