/* =======================
   Game Port — Sign In UI
   Pure CSS (no framework)
   ======================= */

   @import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Wallpoet&display=swap');
   
:root{
  --bg:#0b1220;
  --bg-soft:#0d1626;
  --card:#111a2b;
  --border:rgba(255,255,255,0.08);
  --text:rgba(255,255,255,0.88);
  --muted:rgba(255,255,255,0.6);
  --primary:#1992ff;
  --primary-2:#0cc0df;
  --ring:rgba(25,146,255,0.55);
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  --radius: 7px;
  --radius-lg: 18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  color:var(--text);
  font: 400 16px/1.6 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Background layers */
.bg{position:fixed; inset:0; z-index:-1; overflow:hidden;}
.bg-glow{
  position:absolute; inset:-20% -30% auto -30%; height:70vh;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(32,139,237,0.35), transparent 60%),
    radial-gradient(40% 60% at 80% 20%, rgba(6,197,208,0.25), transparent 60%);
  filter: blur(10px);
}
.bg-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px;
  mask-image: radial-gradient(80% 60% at 90% 50%, rgba(255,255,255,0.5), transparent 70%);
  opacity:.15;
}

/* Header */
.site-header{
  position:fixed; top:0; left:0; right:0;
  backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(5,9,17,0.65), rgba(5,9,17,0));
  border-bottom:1px solid var(--border);
  z-index:10;
}
.container{
  max-width: 1200px; margin:0 auto;
  padding: 14px 20px; display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:12px;}
.brand-name{letter-spacing: .25em; font-weight:600; color:#e8f2ff; text-transform:uppercase}

.header-actions{display:flex; align-items:center; gap:12px;}
.lang{position:relative; display:flex; align-items:center; gap:6px;}
.lang-icon{opacity:.8}
.lang-button, .btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color:var(--text);
  padding:10px 14px;
  border-radius:7px;
  font-weight:500;
  cursor:pointer;
  transition:.2s ease;
}
.lang-button:hover, .btn.ghost:hover{background:rgba(255,255,255,0.08)}
.btn.primary{
  border-color: transparent;
  color:#fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px -12px rgba(32,139,237,.55);
}
.btn.primary:hover{filter:brightness(1.05)}
.btn.ghost{color:var(--muted)}

/* Main layout */
.main{min-height:100vh; display:flex; flex-direction:column; justify-content:center; gap:60px; padding-top:50px}
.auth{
  min-width:380px; margin:0 auto; text-align:center; max-width:450px;
}
.title{
  font-size:46px; line-height:1.1; margin:10px 0 6px; font-weight:500;
  text-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.subtitle{color:var(--muted); margin-bottom:18px;
font-weight: 300;
font-style: Light;
font-size: 18px;
line-height: 100%;
letter-spacing: 0%;
text-align: center;
margin: 20px 0;

}

.auth-form {
    display: grid;
    gap: 14px;
    justify-items: center;   /* centers items horizontally */
    align-items: center;     /* centers items vertically */        /* optional: makes the form take full viewport height for vertical centering */
}

.field{
  position:relative; display:flex; align-items:center;
  background: rgba(255, 255, 255, 0.1);
  padding:10px 12px 10px 20px;
  backdrop-filter: blur(200px);
  width: 350px;
  height: 46px;
  border-radius: 14px;

}
.field:focus-within{outline:2px solid var(--ring); outline-offset:2px}
.field-icon{
  position:absolute; left:12px; top:50%; translate:0 -50%;
  color:var(--muted);
}
.field input{
  width:100% !important; background:transparent; border:0; color:var(--text);
}
.btn.block{width:100%; padding:12px 16px; border-radius:7px;}

.separator{display:flex; align-items:center; justify-content:center; gap:12px; color:var(--muted); margin:16px 0}

      p{
        color: #8D99A9 !important;
        font-weight: 300 !important;
        font-style: Light !important;
        font-size: 18px;
        line-height: 131% !important;
        letter-spacing: 0%;
        text-align: center;
      }

      input::placeholder{
        font-weight: 300;
        font-style: Light;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0%;
      }
      .social-btn span {
        font-weight: 300;
        font-style: Light;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0%;
      }

      button[type="submit"] {
    padding: 10px 12px 10px 20px;
    backdrop-filter: blur(200px);
    width: 350px !important;
    height: 46px !important;
    border-radius: 14px;
}


.social{display:grid; gap:12px;     justify-items: center;   /* centers items horizontally */
    align-items: center;     /* centers items vertically */        /* optional: makes the form take full viewport height for vertical centering */}
.social-btn{
      width: 350px !important;
      height: 46px !important; display:flex !important; align-items:center !important; gap:10px; justify-content:start  !important;
      border: 1px solid rgba(143, 147, 152, 1) !important;
      /* background: rgba(255,255,255,0.02); */
      padding:12px 14px;     border-radius: 14px; color:var(--text);
      transition:.2s ease; box-shadow: var(--shadow);
    }
.social-btn:hover{background:rgba(255,255,255,0.06)}
.social-btn .apple{color:#fff}

/* Footer */
.footer{margin-top:40px; text-align:center; color:var(--muted);}
.footer-logo{font-weight:700; letter-spacing:.35em; margin-top:28px}
.powered{opacity:.9; margin:6px 0 14px}
.links{display:flex; gap:18px; list-style:none; padding:0; margin:0; justify-content:center; flex-wrap:wrap}
.links a{color:var(--muted); text-decoration:none}
.links a:hover{color:var(--text)}

/* Responsive tweaks */
@media (max-width:640px){
  .title{font-size:34px}
  .container{padding:12px 14px}
  .brand-name{letter-spacing:.2em}
}

.lang-menu{
  position:absolute; top:110%; right:0; background:rgba(10,15,26,.98);
  border:1px solid var(--border); border-radius:7px; padding:6px; display:none; min-width:160px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
}
.lang-menu.open{display:block}
.lang-menu li{
  list-style:none; padding:8px 10px; border-radius:8px; cursor:pointer; color:var(--text);
}
.lang-menu li:hover{background:rgba(255,255,255,0.06)}

/* =======================
   Chat History Styles
   ======================= */

/* Active/Current chat highlighting */
.card.active,
.card.current-chat {
    background: linear-gradient(90deg, var(--primary), var(--primary-2)) !important;
    color: #0a0f1a !important;
    border-color: var(--primary) !important;
    box-shadow: 0 8px 20px -8px rgba(32,139,237,.4) !important;
}

.card.active:hover,
.card.current-chat:hover {
    background: linear-gradient(90deg, #0d7ce6, #0aa8c7) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -12px rgba(32,139,237,.6) !important;
}

/* Chat history container improvements */
.group {
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 8px;
}

.card {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 6px;
    text-align: left;
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
}

.card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

/* Chat history search */
#historyFilter {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}

#historyFilter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--ring);
}

#historyFilter::placeholder {
    color: var(--muted);
}


