:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

/* Page background now matches fawzixai.com brand (deep blue/purple gradient) */
body {
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
  color: #0f172a;
}

/* Login card remains light for contrast */
.card {
  max-width: 420px;
  width: 100%;
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* Headings */
h1 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; } /* slightly smaller so it's secondary to brand title */

/* Labels + inputs */
label { display:block; margin: 14px 0 6px; font-weight: 600; color: #111827; }
input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d7dbe7;
  border-radius: 10px;
  background: #eef2ff;
}
input:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 0 0 3px rgba(99,102,241,.25);
}

/* Primary button uses purple->blue brand gradient */
button {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #6366f1, #2563eb);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }

/* Notices */
.notice { padding:10px 12px; border-radius:10px; margin-bottom:10px; font-size:.95rem; }
.notice.error { background:#ffe8e8; border:1px solid #ffb3b3; }
.notice.success { background:#dcfce7; border:1px solid #86efac; }

/* Links */
a { color:#6366f1; text-decoration:none; }
a:hover { color:#2563eb; text-decoration:underline; }

/* --- Branding additions --- */
.brand { text-align:center; margin-top:-6px; margin-bottom:10px; }
.brand img, .logo {
  width: 84px; height: 84px; max-width: 84px;
  object-fit: contain; display: inline-block;
  filter: drop-shadow(0 6px 12px rgba(26,115,232,.18));
  margin-bottom: 12px; /* breathing space under logo */
}
.app-title { margin: 6px 0; font-size: 1.4rem; font-weight: 800; color: #111827; }
.tagline  { margin: 0 0 8px; color: #4b5563; font-size: .95rem; }

/* --- Brand-aligned refinements --- */
.brand img, .logo { width:120px; height:120px; margin-bottom:16px; }
.login-title{
  text-align:center;
  margin:18px 0;
  font-size:1.3rem;
  font-weight:800;
  background: linear-gradient(90deg, #6366f1, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer{
  margin-top:14px;
  text-align:center;
  color:#c7d2fe;
  font-size:0.9rem;
}
.footer a{ color:#c7d2fe; text-decoration:none; }
.footer a:hover{ text-decoration:underline; }

/* --- Card footer at bottom --- */
.card-footer{
  margin-top:24px;
  text-align:center;
  font-size:0.85rem;
  color:#6b7280;
}
.card-footer a{
  color:#6366f1;
  text-decoration:none;
  margin:0 6px;
}
.card-footer a:hover{
  color:#2563eb;
  text-decoration:underline;
}

/* Bigger logo for better top balance */
.brand img, .logo{ width:140px; height:140px; margin-bottom:20px; }

/* --- Glassmorphism card style --- */
.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  color: #fff;
}
.card h1, .card label, .card .app-title, .card .tagline, .card-footer {
  color: #fff;
}
input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
input::placeholder {
  color: #d1d5db;
}
.card-footer {
  border-top: 1px solid rgba(255,255,255,0.2);
  color: #e5e7eb;
}
.card-footer a { color: #a5b4fc; }
.card-footer a:hover { color: #fff; }

/* --- Layout refinements: title spacing + sticky footer --- */
.card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start; /* content from top */
  min-height: 640px; /* ensures room so footer hugs bottom */
}

/* Bring title & tagline closer to logo to fill top space */
.app-title{ margin-top:8px !important; margin-bottom:4px !important; font-size:1.5rem; font-weight:800; }
.tagline{ margin-bottom:16px !important; }

/* Make "Login" clearly a subheading */
.login-title{
  font-size:1.05rem !important;
  font-weight:700;
  margin: 8px 0 10px !important;
  background: linear-gradient(90deg, #6366f1, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align:center;
}

/* Footer pinned to bottom inside card */
.card-footer{
  margin-top:auto !important;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,0.2);
  text-align:center;
  font-size:0.85rem;
  color:#e5e7eb;
}

/* Slight glow on inputs for the glass look */
input{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 2px 12px rgba(0,0,0,0.25);
}
input:focus{
  outline:none;
  box-shadow: inset 0 0 0 1px rgba(165,180,252,0.7), 0 0 0 3px rgba(99,102,241,0.35);
  border-color: rgba(165,180,252,0.8);
}

/* --- Logo subtitle + divider + stronger Login --- */
.login-title{
  font-size: 1.4rem !important;
  font-weight: 700;
  margin: 16px 0 20px !important;
  color: #ffffff !important;
  text-align: center;
}
.brand img, .logo{
  width: 120px;
  height: 120px;
  margin-bottom: 6px;
}
.logo-divider{
  width: 96px;
  height: 2px;
  margin: 6px auto 6px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 2px;
  opacity: .9;
}
.logo-sub{
  margin: 0 0 8px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,0.75);
}

/* Mobile tweaks for subtitle area */
@media (max-width: 600px){
  .brand img, .logo{ width: 100px; height: 100px; }
  .logo-divider{ width: 80px; }
  .logo-sub{ font-size: .8rem; }
  .login-title{ font-size: 1.35rem !important; }
}

/* === 2025-08-27: Login title white + subtitle spacing tweak === */
.login-title{
  font-size: 1.4rem !important;
  font-weight: 700;
  margin: 18px 0 20px !important;
  color: #ffffff !important;
  text-align: center;
}
.logo-sub{
  margin: 0 0 14px !important;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,0.75);
}

/* === 2025-08-27: Force Login heading white === */
.card .login-title,
.login-title,
h2.login-title {
  color: #ffffff !important;
}

/* === 2025-08-27: Force Login heading + links white === */
.card .login-title,
.login-title,
h2.login-title {
  color: #ffffff !important;
}

.card a,
.card a:link,
.card a:visited {
  color: #ffffff !important;
  text-decoration: none;
}

.card a:hover {
  color: #a5b4fc !important; /* soft indigo hover */
}

/* === 2025-08-27: Final fix for Login heading === */
.card h2.login-title,
.card-body h2.login-title,
h2.login-title {
  color: #ffffff !important;
}
