:root{
  --bg-grad-1:#fbfdff; --bg-grad-2:#f7f9fc; --card:#ffffff; --accent:#34618a; --accent-2:#5b7fa0; --muted:#5b6770; --danger:#ef4444;
}
*{box-sizing:border-box}
html,body{height:100%}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial; margin:0;padding:0;background:linear-gradient(135deg,var(--bg-grad-1),var(--bg-grad-2));color:#0f172a}
.container{max-width:980px;margin:32px auto;padding:20px}
.site-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.site-brand .brand-link{font-size:20px;color:var(--accent);text-decoration:none}
.site-brand .brand-link strong{color:var(--accent-2)}
.nav a{color:var(--accent);text-decoration:none;margin-left:12px;font-weight:600}
.nav a:hover{text-decoration:underline}
.signed{color:var(--muted);font-size:13px;margin-right:8px}

/* Auth card */
.auth-card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,0.9),#fff);border-radius:14px;box-shadow:0 8px 30px rgba(12,20,40,0.08);padding:28px 28px;max-width:460px;margin:28px auto;border:1px solid rgba(14,30,60,0.03)}
  .auth-card h2{margin:0 0 6px;font-size:20px}
  .auth-card .sub{color:var(--muted);font-size:13px;margin-bottom:18px}

/* language selector combobox at top-right of card */
.auth-lang-top{position:absolute;right:12px;top:12px;display:flex;gap:8px;align-items:center;z-index:3}
.auth-lang-top .lang-form{position:relative;display:inline-flex;align-items:center}
.lang-select{appearance:none;-webkit-appearance:none;padding:6px 28px 6px 10px;border-radius:8px;border:1px solid rgba(14,30,60,0.04);background:transparent;color:var(--muted);font-weight:700;font-size:13px;cursor:pointer}
.lang-select:focus{outline:none;box-shadow:0 0 0 4px rgba(52,97,138,0.08);border-color:var(--accent)}
.lang-icon{position:absolute;right:8px;font-size:16px;color:var(--muted);pointer-events:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* center tabs and keep them inline without scroll */
.tabs{display:flex;gap:10px;margin:8px 0 12px;justify-content:center;flex-wrap:nowrap;overflow:visible;align-items:center}
.tab-link{white-space:nowrap;min-width:0;padding:6px 10px;font-size:14px;flex:0 0 auto}
@media (max-width:420px){
  .tabs{gap:6px}
  .tab-link{font-size:13px;padding:6px 8px}
  .auth-logo-img{width:120px !important;max-width:120px !important}
}

/* auth logo flex */
.auth-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}

.tab-icon{display:inline-block;margin-right:8px;font-size:16px}

/* logging note below card */
.auth-log-note{margin:12px auto 0;max-width:460px;text-align:center;font-size:13px;color:var(--muted)}

/* auth logo flex */
.auth-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}

/* force Segoe UI for auth card */
.auth-card, .auth-card *{font-family:'Segoe UI', Tahoma, Arial, sans-serif}

/* icon spacing and utilities */
.me-1{margin-right:6px}
.me-2{margin-right:10px}

.tab-icon{display:inline-block;margin-right:8px;font-size:16px}

.btn i.bi{font-size:18px;display:inline-flex;align-items:center}
.btn .bi{vertical-align:middle}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:13px;color:#0f172a;margin-bottom:6px}
.form-input{width:100%;padding:12px 14px;border:1px solid #e6eef6;border-radius:10px;font-size:15px;background:#fbfdff}
.form-input:focus{outline:none;box-shadow:0 0 0 4px rgba(66,153,225,0.08);border-color:var(--accent)}
.field-error{color:var(--danger);font-size:13px;margin-top:8px}
.has-error{border-color:var(--danger)!important}
.form-row{display:flex;gap:12px;align-items:center}
.form-actions{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.btn{display:inline-block;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;padding:10px 16px;border-radius:10px;border:none;cursor:pointer;font-weight:700;font-size:15px}
.btn-outline{background:transparent;border:1px solid rgba(10,20,40,0.06);color:var(--accent);padding:9px 14px;border-radius:10px}
.btn:hover{opacity:0.98}
.muted{font-size:13px;color:var(--muted);margin-top:12px;text-align:center}
.auth-logo{display:block;text-align:center;margin-bottom:12px}
.auth-logo .logo-pill{display:inline-block;padding:8px 12px;background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;border-radius:999px;font-weight:700}
.auth-card.shake{animation:shake .36s ease-in-out}
@keyframes shake{0%{transform:translateX(0)}25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-6px)}100%{transform:translateX(0)}}

/* small devices */
@media (max-width:480px){
  .container{padding:16px}
  .auth-card{margin:20px 12px;padding:20px}
}

.site-footer{margin-top:36px;padding-top:18px;border-top:1px solid rgba(14,30,60,0.04);text-align:center;color:var(--muted);font-size:13px}

/* Tabs for auth */
.tabs{display:flex;gap:8px;margin:8px 0 12px}
.tab-link{padding:0 8px;cursor:pointer;background:transparent;color:var(--muted);font-weight:600;border-bottom:2px solid transparent;height:40px;display:inline-flex;align-items:center;gap:8px;margin:0 6px}
.tab-link.active{color:var(--accent);border-bottom-color:var(--accent)}
.tab-pane{display:none;padding-top:6px}
.tab-pane.active{display:block}

/* auth alert */
.auth-alert{background:#fff7ed;border:1px solid #ffedd5;color:#92400e;padding:8px 12px;border-radius:8px;margin-bottom:8px;font-size:14px}

/* inline language buttons under alert */
.auth-lang-inline{display:flex;gap:8px;justify-content:center;margin-bottom:12px}
.auth-lang-inline a{padding:6px 10px;border-radius:8px;border:1px solid rgba(14,30,60,0.04);background:transparent;color:var(--accent);font-weight:700;text-decoration:none}
.auth-lang-inline a.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}


.auth-logo-img{width:130px !important;height:auto !important;max-width:130px !important;display:block;margin:0 auto 8px;object-fit:contain !important} 

/* ensure header-logo hidden */
.site-logo{display:none !important}

/* center auth card content */
.auth-card.centered{text-align:center}
.auth-top{position:relative;padding-top:8px}
.auth-lang{position:absolute;right:14px;top:8px;display:inline-flex;gap:8px}
.auth-lang a{font-family:Inter, 'Segoe UI', Roboto, Arial, sans-serif;font-weight:700;color:var(--accent);margin-left:8px;text-decoration:none;padding:4px 8px;border-radius:6px}
.auth-lang a.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}
.auth-top .welcome{font-weight:700;color:var(--accent);margin-bottom:6px}

/* tab icons and centering */
.tab-icon{display:inline-block;margin-right:8px;font-size:14px}
.tabs.centered{justify-content:center}
.tab-link{min-width:80px;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 10px;font-size:14px}

/* match heights for inputs and buttons */
.form-input{height:48px;padding:0 14px;box-sizing:border-box;display:block}
.btn{height:48px;padding:0 16px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
.btn.full-width{width:100%;display:flex;align-items:center;justify-content:center;height:48px !important}

/* center headings */
.auth-card h2, .auth-card .sub{margin-left:auto;margin-right:auto;text-align:center}

/* header logo */
.site-logo{display:none !important} 

/* language pill */
.lang-pill{display:inline-flex;align-items:center;gap:6px;margin-left:12px;padding:6px 10px;border-radius:999px;border:1px solid rgba(14,30,60,0.04);background:rgba(255,255,255,0.6)}
.lang-pill a{font-weight:700;color:var(--accent);text-decoration:none;padding:2px 6px;border-radius:6px;font-size:13px}
.lang-pill a.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}
.lang-pill .sep{color:var(--muted);opacity:0.6}
.lang-pill{display:inline-flex;align-items:center;gap:8px;margin-left:12px;padding:4px 8px;border-radius:999px;border:1px solid rgba(14,30,60,0.04);background:transparent}
.lang-pill a{font-weight:700;color:var(--accent);text-decoration:none;padding:2px 6px;border-radius:6px}
.lang-pill a.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff}
.lang-pill .sep{color:var(--muted)}

.info{background:#ecfdf5;border:1px solid #bbf7d0;color:#065f46;padding:8px 12px;border-radius:8px;margin-bottom:12px}


