/* =======================
   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{
      max-width: 350px;
    border-color: transparent;
    color:#fff;
    background: #0C1E42;
    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:70px}
.auth{
    min-width:380px; margin:0 auto; text-align:center; max-width:450px;
}
.title{
    font-size:46px; line-height:1; margin:10px 0 6px; font-weight:500;  max-width: 350px;
}
.subtitle{color:var(--muted); margin-bottom:18px}

.auth-form{display:grid; gap:14px; justify-content: center;}
.field{
    min-width: 350px;
    position:relative; display:flex; align-items:center;
    background: rgba(0, 0, 0, .1);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding:10px 12px 10px 20px;
    box-shadow: var(--shadow);
}
.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:#0C1E42 ;
    font: 400 14px/1.6 'Outfit',sans-serif; outline:none;
}

input::placeholder {
    color: #0C1E42  !important;
    opacity: 1; /* Ensures consistent visibility across browsers */
}
.btn.block{width:100%; padding:12px 16px; border-radius:7px;}

.separator{display:flex;   max-width: 350px; align-items:center; justify-content:center; gap:12px; color:var(--muted); margin:8px 0}
.separator::before, .separator::after{content:""; height:1px; width:80px; background:var(--border)}

.social{display:grid; gap:12px; justify-items: center;  
    align-items: center;}
.social-btn{
      max-width: 350px; min-width: 350px; display:flex; align-items:center; gap:10px; justify-content:start;
    border:1px solid rgba(0, 0, 0, .1);;
    /* background: rgba(255,255,255,0.02); */
    padding:12px 14px; border-radius:7px; 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);
}

