.teknosay-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  color: #e2e8f0;
  background:
    radial-gradient(circle at 14% 12%, rgb(14 165 233 / .16), transparent 30%),
    radial-gradient(circle at 84% 84%, rgb(139 92 246 / .14), transparent 34%),
    linear-gradient(145deg, #020617, #071124 45%, #030712);
  font-family: Inter, system-ui, sans-serif;
  isolation: isolate;
  transition: opacity .25s ease, transform .25s ease;
}

.teknosay-auth-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .28;
  background-image: linear-gradient(rgb(148 163 184 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(148 163 184 / .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.teknosay-auth-overlay.is-leaving { opacity: 0; transform: scale(1.015); pointer-events: none; }
.teknosay-auth-aurora { position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%; filter: blur(100px); opacity: .22; animation: teknosayAurora 12s ease-in-out infinite alternate; }
.teknosay-auth-aurora.a { top: -140px; left: 10%; background: #06b6d4; }
.teknosay-auth-aurora.b { right: 5%; bottom: -160px; background: #7c3aed; animation-delay: -5s; }
@keyframes teknosayAurora { to { transform: translate3d(70px, 45px, 0) scale(1.12); } }

.teknosay-auth-shell {
  width: min(1080px, 100%);
  min-height: min(700px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgb(71 85 105 / .55);
  border-radius: 28px;
  background: rgb(8 15 31 / .82);
  box-shadow: 0 38px 100px rgb(0 0 0 / .56), inset 0 1px rgb(255 255 255 / .04);
  backdrop-filter: blur(24px);
  animation: teknosayAuthIn .55s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes teknosayAuthIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }

.teknosay-auth-brand { position: relative; display: flex; flex-direction: column; padding: 42px 52px 34px; overflow: hidden; border-right: 1px solid rgb(51 65 85 / .58); background: linear-gradient(155deg, rgb(8 47 73 / .42), rgb(15 23 42 / .56) 46%, rgb(46 16 101 / .26)); }
.teknosay-auth-brand::after { content: ""; position: absolute; right: -170px; bottom: -210px; width: 520px; height: 520px; border: 1px solid rgb(56 189 248 / .13); border-radius: 50%; box-shadow: 0 0 0 54px rgb(56 189 248 / .025), 0 0 0 108px rgb(139 92 246 / .025); }
.teknosay-brand-lockup { display: flex; align-items: center; gap: 12px; }
.teknosay-brand-lockup img, .teknosay-mobile-logo img { width: 46px; height: 46px; object-fit: cover; border-radius: 13px; box-shadow: 0 8px 28px rgb(14 165 233 / .28); }
.teknosay-brand-lockup div { display: flex; flex-direction: column; }
.teknosay-brand-lockup strong { color: white; font-size: 20px; letter-spacing: -.02em; }
.teknosay-brand-lockup span { color: #67e8f9; font: 700 9px/1.2 "JetBrains Mono", monospace; letter-spacing: .22em; }

.teknosay-auth-hero { margin: auto 0 34px; position: relative; z-index: 1; }
.teknosay-auth-kicker { display: inline-flex; margin-bottom: 17px; padding: 7px 10px; border: 1px solid rgb(34 211 238 / .22); border-radius: 999px; color: #67e8f9; background: rgb(8 145 178 / .09); font: 700 9px/1 "JetBrains Mono", monospace; letter-spacing: .18em; }
.teknosay-auth-hero h1 { margin: 0; color: #f8fafc; font-size: clamp(35px, 4vw, 52px); line-height: 1.07; letter-spacing: -.045em; }
.teknosay-auth-hero mark { color: transparent; background: linear-gradient(90deg, #22d3ee, #60a5fa 52%, #c084fc); background-clip: text; -webkit-background-clip: text; }
.teknosay-auth-hero p { max-width: 490px; margin: 20px 0 0; color: #94a3b8; font-size: 14px; line-height: 1.72; }

.teknosay-auth-benefits { position: relative; z-index: 1; display: grid; gap: 11px; margin-bottom: 30px; }
.teknosay-auth-benefits > div { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid rgb(71 85 105 / .4); border-radius: 14px; background: rgb(15 23 42 / .46); }
.teknosay-auth-benefits i { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border: 1px solid rgb(34 211 238 / .2); border-radius: 10px; color: #67e8f9; background: rgb(6 182 212 / .1); font-style: normal; font-weight: 900; }
.teknosay-auth-benefits span { display: flex; flex-direction: column; gap: 2px; }
.teknosay-auth-benefits b { color: #e2e8f0; font-size: 11px; }
.teknosay-auth-benefits small { color: #64748b; font-size: 9px; }
.teknosay-auth-version { position: relative; z-index: 1; color: #475569; font: 600 8px/1 "JetBrains Mono", monospace; letter-spacing: .12em; }

.teknosay-auth-card { display: flex; flex-direction: column; justify-content: center; padding: 42px 54px; background: rgb(15 23 42 / .78); }
.teknosay-auth-card header { margin-bottom: 22px; }
.teknosay-auth-card h2 { margin: 0; color: #f8fafc; font-size: 28px; letter-spacing: -.035em; }
.teknosay-auth-card header > p { margin: 7px 0 0; color: #64748b; font-size: 12px; }
.teknosay-mobile-logo { display: none; }

.teknosay-google-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 47px; border: 1px solid #334155; border-radius: 13px; color: #e2e8f0; background: rgb(30 41 59 / .7); cursor: pointer; font: 700 12px/1 Inter, sans-serif; transition: .18s ease; }
.teknosay-google-button:hover { border-color: #64748b; background: #253247; transform: translateY(-1px); }
.teknosay-google-button svg { width: 19px; height: 19px; }
.teknosay-google-button:disabled { opacity: .55; cursor: wait; transform: none; }
.teknosay-auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: #475569; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.teknosay-auth-divider::before, .teknosay-auth-divider::after { content: ""; height: 1px; flex: 1; background: #263247; }

.teknosay-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 17px; border: 1px solid rgb(51 65 85 / .65); border-radius: 12px; background: rgb(2 6 23 / .52); }
.teknosay-auth-tabs button { height: 34px; border: 0; border-radius: 8px; color: #64748b; background: transparent; cursor: pointer; font: 700 10px Inter, sans-serif; transition: .18s ease; }
.teknosay-auth-tabs button.is-active { color: #e0f2fe; background: linear-gradient(135deg, rgb(8 145 178 / .3), rgb(79 70 229 / .24)); box-shadow: inset 0 0 0 1px rgb(34 211 238 / .13); }

.teknosay-auth-form { display: flex; flex-direction: column; gap: 13px; }
.teknosay-auth-form label > span { display: block; margin: 0 0 6px 2px; color: #94a3b8; font-size: 9px; font-weight: 700; letter-spacing: .035em; }
.teknosay-input-wrap { position: relative; }
.teknosay-input-wrap i { position: absolute; left: 13px; top: 50%; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #22d3ee; background: rgb(6 182 212 / .08); font: 700 10px/1 "JetBrains Mono", monospace; transform: translateY(-50%); }
.teknosay-input-wrap input { width: 100%; height: 44px; padding: 0 13px 0 42px; border: 1px solid #334155; border-radius: 12px; outline: none; color: #f8fafc; background: rgb(2 6 23 / .66); font: 500 11px Inter, sans-serif; transition: .18s ease; }
.teknosay-input-wrap input::placeholder { color: #475569; }
.teknosay-input-wrap input:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgb(6 182 212 / .1), 0 8px 24px rgb(2 6 23 / .24); }
.teknosay-input-wrap input:disabled { opacity: .55; }
.teknosay-forgot { align-self: flex-end; margin: -5px 1px 0; padding: 0; border: 0; color: #38bdf8; background: transparent; cursor: pointer; font: 600 9px Inter, sans-serif; }
.teknosay-forgot:hover { color: #67e8f9; }
.teknosay-auth-submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; height: 47px; margin-top: 2px; overflow: hidden; border: 1px solid rgb(34 211 238 / .34); border-radius: 13px; color: white; background: linear-gradient(110deg, #0891b2, #2563eb 54%, #7c3aed); box-shadow: 0 13px 35px rgb(37 99 235 / .22); cursor: pointer; font: 800 11px Inter, sans-serif; transition: .18s ease; }
.teknosay-auth-submit::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .2), transparent 70%); transform: translateX(-110%); transition: transform .55s ease; }
.teknosay-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgb(37 99 235 / .3); }
.teknosay-auth-submit:hover::before { transform: translateX(110%); }
.teknosay-auth-submit em { position: absolute; right: 15px; font-style: normal; font-size: 16px; }
.teknosay-auth-submit b { display: none; width: 15px; height: 15px; border: 2px solid rgb(255 255 255 / .3); border-top-color: white; border-radius: 50%; animation: teknosaySpin .7s linear infinite; }
.teknosay-auth-submit.is-loading b { display: block; }
.teknosay-auth-submit:disabled { opacity: .66; cursor: wait; transform: none; }
@keyframes teknosaySpin { to { transform: rotate(360deg); } }

.teknosay-auth-message { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgb(248 113 113 / .2); border-radius: 10px; color: #fca5a5; background: rgb(127 29 29 / .15); font-size: 9px; line-height: 1.45; }
.teknosay-auth-message[data-tone="success"] { border-color: rgb(52 211 153 / .24); color: #6ee7b7; background: rgb(6 78 59 / .18); }
.teknosay-auth-message[data-tone="info"] { border-color: rgb(56 189 248 / .24); color: #7dd3fc; background: rgb(12 74 110 / .18); }
.teknosay-auth-card footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 19px; color: #475569; font-size: 8px; }

.teknosay-cloud-account { position: fixed; z-index: 9600; top: 7px; right: auto; left: calc(50% + 128px); bottom: auto; transform: translateX(-50%); font-family: Inter, sans-serif; }
.teknosay-cloud-pill { display: flex; align-items: center; gap: 9px; min-width: 232px; height: 46px; padding: 5px 12px 5px 6px; border: 1px solid rgb(96 165 250 / .35); border-radius: 16px; color: #e2e8f0; background: linear-gradient(135deg, rgb(15 23 42 / .96), rgb(30 41 59 / .92)); box-shadow: 0 12px 32px rgb(0 0 0 / .28), inset 0 1px 0 rgb(255 255 255 / .06); backdrop-filter: blur(15px); cursor: pointer; transition: .18s ease; }
.teknosay-cloud-pill:hover { border-color: #64748b; transform: translateY(-1px); }
.teknosay-cloud-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; overflow: hidden; border: 1px solid rgb(34 211 238 / .38); border-radius: 12px; color: #cffafe; background: linear-gradient(135deg, #0e7490, #4338ca); font-size: 10px; font-weight: 900; box-shadow: 0 6px 16px rgb(14 116 144 / .22); }
.teknosay-cloud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teknosay-cloud-meta { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 3px; }
.teknosay-cloud-meta b { max-width: 156px; overflow: hidden; color: #f8fafc; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.teknosay-cloud-meta small { display: flex; align-items: center; gap: 5px; color: #94a3b8; font-size: 8px; }
.teknosay-cloud-meta i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.teknosay-cloud-pill[data-sync="syncing"] .teknosay-cloud-meta i { border: 1px solid #7dd3fc; border-top-color: transparent; background: transparent; box-shadow: none; animation: teknosaySpin .7s linear infinite; }
.teknosay-cloud-pill[data-sync="pending"] .teknosay-cloud-meta i { background: #fbbf24; box-shadow: 0 0 8px #f59e0b; }
.teknosay-cloud-pill[data-sync="offline"] .teknosay-cloud-meta i, .teknosay-cloud-pill[data-sync="error"] .teknosay-cloud-meta i { background: #94a3b8; box-shadow: none; }
.teknosay-cloud-pill > em { color: #64748b; font-style: normal; transition: transform .18s ease; }
.teknosay-cloud-account.is-open .teknosay-cloud-pill > em { transform: rotate(180deg); }
.teknosay-cloud-menu { position: absolute; right: auto; left: 50%; top: 53px; bottom: auto; display: none; width: 240px; padding: 9px; border: 1px solid #334155; border-radius: 14px; background: rgb(15 23 42 / .98); box-shadow: 0 22px 55px rgb(0 0 0 / .48); transform: translateX(-50%); }
.teknosay-cloud-account.is-open .teknosay-cloud-menu { display: grid; gap: 5px; animation: teknosayMenuIn .15s ease both; }
@keyframes teknosayMenuIn { from { opacity: 0; transform: translate(-50%, 5px); } to { opacity: 1; transform: translate(-50%, 0); } }
.teknosay-cloud-menu strong { padding: 6px 8px 10px; overflow: hidden; border-bottom: 1px solid #263247; color: #94a3b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.teknosay-cloud-menu button { padding: 9px 10px; border: 0; border-radius: 9px; color: #cbd5e1; background: transparent; cursor: pointer; text-align: left; font: 600 9px Inter, sans-serif; }
.teknosay-cloud-menu button:hover { color: white; background: #1e293b; }
.teknosay-cloud-menu button[data-logout]:hover { color: #fca5a5; background: rgb(127 29 29 / .22); }

@media (max-width: 850px) {
  .teknosay-auth-shell { grid-template-columns: 1fr; width: min(480px, 100%); }
  .teknosay-auth-brand { display: none; }
  .teknosay-auth-card { padding: 34px; }
  .teknosay-mobile-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 25px; color: white; font-size: 15px; font-weight: 800; }
  .teknosay-mobile-logo img { width: 36px; height: 36px; border-radius: 10px; }
}

@media (max-height: 720px) and (min-width: 851px) {
  .teknosay-auth-overlay { padding: 10px; }
  .teknosay-auth-shell { min-height: calc(100vh - 20px); }
  .teknosay-auth-brand { padding: 25px 42px 20px; }
  .teknosay-auth-card { padding: 24px 45px; }
  .teknosay-auth-benefits { grid-template-columns: repeat(3, 1fr); }
  .teknosay-auth-benefits > div { padding: 8px; }
  .teknosay-auth-benefits small { display: none; }
  .teknosay-auth-hero { margin-bottom: 18px; }
  .teknosay-auth-hero h1 { font-size: 36px; }
}

@media (max-width: 520px) {
  .teknosay-auth-overlay { padding: 0; }
  .teknosay-auth-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .teknosay-auth-card { padding: 28px 22px; }
  .teknosay-cloud-account {
    top: calc(env(safe-area-inset-top) + 8px) !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    z-index: 9700 !important;
  }
  .teknosay-cloud-menu {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }
  .teknosay-cloud-pill { min-width: 40px; width: 40px; padding: 4px; }
  .teknosay-cloud-meta, .teknosay-cloud-pill > em { display: none; }
}
