/* ═══════════════════════════════════════════════════
   PATAO CLOUD — login.css  (fixed)
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500&display=swap');

@font-face {
  font-family: "Jersey 10";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jersey10/v4/GftH7vZKsggXMf9n_J5n8Zjh-1w.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jersey 10";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/jersey10/v4/GftH7vZKsggXMf9n_J5n_5jh.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── CSS Variables ── */
:root {
  --accent:      #7ec8e3;
  --accent-glow: rgba(126, 200, 227, 0.25);
  --dark-panel:  rgba(10, 28, 44, 0.96);
  --dark-row:    rgba(255, 255, 255, 0.04);
  --dark-row-h:  rgba(126, 200, 227, 0.07);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* prevent any scroll caused by overflowing elements */
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* prevent page scroll — everything is fixed/centered */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #6ea8d9, #486c88);
  flex-direction: column;
}

/* ── Terms of Use view: allow scrolling + top-aligned layout ── */
html:has(body.ptc-tos-open) {
  overflow: auto;
}
body.ptc-tos-open {
  overflow: auto;
  align-items: stretch;
  justify-content: flex-start;
}
body.ptc-tos-open main {
  width: 100%;
  height: 100vh;
  overflow: auto;
  padding: 24px 16px 64px;
}

/* ── Prevent flash/jump while swapping main content ── */
main {
  transition: opacity 0.14s ease;
}
body.ptc-main-swapping main {
  opacity: 0;
}

/* ── Particles canvas — fixed, behind everything ── */
#ptc-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Keep structural elements above canvas */
header, main, footer { position: relative; z-index: 1; }

/* ── Language switcher (top-right) ── */
.ptc-lang {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 950;
}

.ptc-lang-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(8, 22, 38, 0.55);
  color: rgba(255,255,255,0.85);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.ptc-lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(8, 22, 38, 0.72);
  border-color: rgba(126,200,227,0.25);
}
.ptc-lang-btn:active { transform: translateY(0); }

.ptc-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(8, 22, 38, 0.92);
  border: 1px solid rgba(126,200,227,0.22);
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  display: none;
}
.ptc-lang.open .ptc-lang-menu { display: block; }

.ptc-lang-item {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.82);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ptc-lang-item:hover {
  background: rgba(126,200,227,0.10);
  color: #fff;
}
.ptc-lang-item[aria-checked="true"] {
  background: rgba(126,200,227,0.14);
  border: 1px solid rgba(126,200,227,0.18);
}

/* ── Login container ── */
.login-container {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 320px;
  position: relative;
  /* Card entrance animation applied via JS class */
}

.ptc-card-enter {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.34,1.56,0.64,1);
}
.ptc-card-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ── Icon: only the <i> tag is 80px; children reset ── */
.login-container .icon {
  color: #2c3e50;
  margin-bottom: 4px;
  cursor: pointer;
  user-select: none;
  /* do NOT set font-size here — it would cascade to all children */
}

/* The FontAwesome icon itself */
.login-container .icon > i {
  font-size: 72px;
  display: block;
  margin-bottom: 6px;
  color: #2c3e50;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.login-container .icon:hover > i {
  transform: scale(1.08);
}

/* ── PATAO brand letters ── */
.ptc-brand {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 4px;
  font-size: 0; /* collapse whitespace between inline spans */
}

.ptc-letter {
  font-family: 'Syne', sans-serif;
  font-size: 20px; /* explicit — NOT inherited from .icon */
  font-weight: 800;
  color: rgba(255, 255, 255, 0.80);
  letter-spacing: 0.12em;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: color 0.2s ease,
              transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
  /* entrance animation state */
  opacity: 0;
  transform: translateY(8px);
}

@keyframes ptcLetterIn {
  to { opacity: 1; transform: translateY(0); }
}
.ptc-letter-anim {
  animation: ptcLetterIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.ptc-letter:hover {
  color: var(--accent);
  transform: translateY(-5px) !important;
}

/* ── Per-letter tooltip ── */
.ptc-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(8, 22, 38, 0.97);
  border: 1px solid rgba(126,200,227,0.28);
  border-radius: 10px;
  padding: 10px 13px;
  min-width: 175px;
  max-width: 210px;
  pointer-events: none;
  opacity: 0;
  z-index: 600;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  white-space: normal;
  font-size: 12px; /* reset from parent's font-size:0 */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* tooltip arrow */
.ptc-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(126,200,227,0.28);
}

.ptc-letter:hover .ptc-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ptc-tip-word {
  font-family: 'Syne', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}

.ptc-tip-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  line-height: 1.55;
}

/* ── Tagline below letters ── */
.ptc-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px; /* tiny — NOT inherited */
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  text-align: center;
  margin-bottom: 16px;
}

/* ── Pulse dot ── */
.ptc-pulse-dot {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  animation: ptcPulse 3s ease-in-out infinite;
}
.ptc-pulse-dot:hover { opacity: 1; transform: scale(1.5); }

@keyframes ptcPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 0 7px rgba(126,200,227,0); }
}

/* ── Inputs ── */
.login-container input[type="text"],
.login-container input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
  background: #2c3e50;
  color: white;
  font-size: 16px;
  outline: none;
  transition: background 0.25s, box-shadow 0.25s;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  background: #354f67;
  box-shadow: 0 0 0 2px var(--accent-glow);
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  background: #2c3e50;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 3px;
  height: 14px;
  width: 14px;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="checkbox"]:hover {
  border-color: #7ec8e3;
  box-shadow: 0 0 0 2px rgba(126,200,227,0.18);
}

input[type="checkbox"]:checked {
  background: #2c3e50;
  border-color: #7ec8e3;
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #7ec8e3;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.login-container input::placeholder { color: #ccc; }

/* ── Options row ── */
.options {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 20px 0;
  font-size: 14px;
  color: white;
}

.options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  line-height: 1;
}

.options input[type="checkbox"] {
  margin: 0 4px 0 0;
  flex-shrink: 0;
  vertical-align: middle;
}

.options a { color: #ddd; text-decoration: none; }
.options a:hover { text-decoration: underline; }

/* ── Login button + ripple ── */
.login-container button {
  width: 100%;
  padding: 12px;
  background: #2c3e50;
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.18s, box-shadow 0.25s;
}
.login-container button:hover {
  background: #1a242f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.login-container button:active { transform: translateY(0); }

.ptc-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  pointer-events: none;
  animation: ptcRipple 0.55s ease-out forwards;
}
@keyframes ptcRipple {
  to { transform: scale(2.5); opacity: 0; }
}

/* ── Footer ── */
footer {
  position: fixed;
  bottom: 1vh;
  right: 2vh;
  font-weight: bolder;
  cursor: pointer;
  z-index: 10;
}
footer > h1 { font-size: 1rem; transition: font-size 0.15s; }
footer > h1:hover { font-size: 1.15rem; }

.TOS {
  padding: 2vh;
  display: flex;
  width: 98%;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: "Jersey 10", sans-serif;
  font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   PATAO INFO OVERLAY
   — position:fixed, inset:0, z-index:900
   — hidden by default (pointer-events:none, opacity:0)
   — .open class triggers all transitions
═══════════════════════════════════════════════════ */
.ptc-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* invisible until .open */
}

.ptc-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Panel — centered, scrollable if needed */
.ptc-panel {
  position: relative;
  z-index: 1;
  width: 460px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(126,200,227,0.2) transparent;
  background: var(--dark-panel);
  border: 1px solid rgba(126,200,227,0.2);
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  /* hidden state */
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.34,1.56,0.64,1),
              transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Open state */
.ptc-overlay.open { pointer-events: all; }

.ptc-overlay.open .ptc-backdrop {
  background: rgba(8, 20, 32, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ptc-overlay.open .ptc-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Close button */
.ptc-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ptc-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Panel header */
.ptc-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
  font-weight: 500;
}

.ptc-big-title {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 5px;
  display: flex;
  gap: 1px;
}

.ptc-big-title span {
  display: inline-block;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-10px) scale(0.85);
}

.ptc-overlay.open .ptc-big-title span {
  animation: ptcTitleLetter 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.ptc-overlay.open .ptc-big-title span:nth-child(1) { animation-delay: 0.06s; }
.ptc-overlay.open .ptc-big-title span:nth-child(2) { animation-delay: 0.11s; }
.ptc-overlay.open .ptc-big-title span:nth-child(3) { animation-delay: 0.16s; }
.ptc-overlay.open .ptc-big-title span:nth-child(4) { animation-delay: 0.21s; }
.ptc-overlay.open .ptc-big-title span:nth-child(5) { animation-delay: 0.26s; }

@keyframes ptcTitleLetter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ptc-big-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.36);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ptc-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 80%);
  opacity: 0.22;
  margin-bottom: 16px;
}

/* ── Acronym rows ── */
.ptc-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.ptc-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--dark-row);
  border: 1px solid rgba(255,255,255,0.055);
  opacity: 0;
  transform: translateX(-16px);
  transition: background 0.2s, border-color 0.2s,
              opacity 0.38s ease, transform 0.38s ease;
}

.ptc-row:hover {
  background: var(--dark-row-h);
  border-color: rgba(126,200,227,0.16);
}

.ptc-overlay.open .ptc-row { opacity: 1; transform: translateX(0); }
.ptc-overlay.open .ptc-row:nth-child(1) { transition-delay: 0.20s; }
.ptc-overlay.open .ptc-row:nth-child(2) { transition-delay: 0.27s; }
.ptc-overlay.open .ptc-row:nth-child(3) { transition-delay: 0.34s; }
.ptc-overlay.open .ptc-row:nth-child(4) { transition-delay: 0.41s; }
.ptc-overlay.open .ptc-row:nth-child(5) { transition-delay: 0.48s; }

.ptc-rl {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  min-width: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.ptc-rb { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }

.ptc-rw {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.ptc-rd {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  line-height: 1.5;
}

/* ── Service tags ── */
.ptc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s 0.56s ease, transform 0.38s 0.56s ease;
}

.ptc-overlay.open .ptc-tags { opacity: 1; transform: translateY(0); }

.ptc-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(126,200,227,0.08);
  border: 1px solid rgba(126,200,227,0.18);
  color: rgba(168,216,234,0.85);
  white-space: nowrap;
  cursor: default;
  transition: background 0.2s, transform 0.2s;
}
.ptc-tag:hover { background: rgba(126,200,227,0.16); transform: translateY(-2px); }