/* =======================
   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;
}

/* 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: #226CFE;
;
  background: #ffffff;
  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{
  line-height:1.1; 
  margin:10px 0 6px;
  font-weight: 500 !important;
  font-style: Medium;
  font-size: 46px !important;
  font-style: Medium;;
}
.subtitle{
  color:var(--muted); 
  margin-bottom:18px;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  color: #FFFFFFE5 !important;
  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{
  width: 350px;
  height: 46px;
  border-radius: 10px;
  position:relative; display:flex; align-items:center;
  background: rgba(0, 0, 0, 0.13);
  box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.02);
  padding:10px 12px 10px 20px;
}

.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;
}
/* Remove default focus outlines and borders */
input:focus {
  outline: none;             /* removes the browser's glow/outline */
  box-shadow: none;          /* removes default shadow (like Chrome blue) */
  border: none; /* your custom border color */
}

/* Optional: smooth transition effect */
input {
  transition: border 0.2s ease, box-shadow 0.2s ease;
}


.btn.block{width:100%; padding:10px 16px; border-radius:7px;   width: 350px;
  height: 46px;}

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

.social{display:grid; gap:12px; justify-items: center;  
    align-items: center; }
.social-btn{
    width: 350px;
    height: 46px; 
    border-radius: 10px;
    border-width: 1.5px;
    display:flex !important; align-items:center; gap:10px; justify-content:start;
    border: 1.5px solid #FFFFFF66;
    background: rgba(0, 0, 0, 0.13);;
    padding:12px 14px; 
    transition:.2s ease; box-shadow: 0px 15px 30px 0px rgba(0, 0, 0, 0.02);
}
.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: rgba(0, 0, 0, 0.13);
    color: rgba(196, 208, 232, 1) !important;
}

.card.active:hover,
.card.current-chat:hover {
    background: rgba(0, 0, 0, 0.23) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -12px rgba(32,139,237,.6) !important;
} */

/* Chat history container improvements */
.group {
    font-size: 12px;
    color: #ffffff;
    margin: 8px 4px;
}

.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;
    background: linear-gradient(175.21deg, rgba(12, 30, 66, 0.04) 3.25%, rgba(12, 30, 66, 0.24) 95.52%);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 14px;
}

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

#historyFilter::placeholder {
    color: #fff;
}

#historyFilter[placeholder="Search"]::placeholder {
    color: #fff;
}