/* Split-screen Login - New Look */
:root {
  /* Updated brand palette per new color scheme */
  --brand-primary: #042954;   /* deep navy */
  --brand-secondary: #FFA302; /* brand orange */
  --brand-accent: #FFA302;    /* use orange as the accent/CTA */
  /* Lighter, brand-aligned background (removed near-black) */
  --bg-dark: #042954;
  --text-primary: #e9eef7;
  --text-muted: #b5c2d6;
  /* Card colors aligned with view-expired.xhtml */
  --card-bg-grad-start: rgba(255,255,255,.04);
  --card-bg-grad-end: rgba(255,255,255,.02);
  --card-border: rgba(148,163,184,.2);
  /* Panel light blue variants */
  --panel-blue-1: #f5f8ff; /* requested base */
  --panel-blue-2: #eef3ff; /* slightly deeper */
  /* Light card variants for use on the panel (remove navy) */
  --card-light-start: rgba(245, 248, 255, 0.92);
  --card-light-end: rgba(255, 255, 255, 0.88);
  --card-light-border: rgba(99, 121, 174, 0.25); /* soft slate/blue border */
  --text-dark: #0b1220;
  --text-muted-dark: #475569; /* slate-600 */
}

html, body { height: 100%; }
/* Body background lightened and matched to view-expired.xhtml vibe */
body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 70% 10%, rgba(255,163,2,.12), transparent 60%),
    radial-gradient(900px 650px at 15% 85%, rgba(4,41,84,.25), transparent 60%),
    var(--bg-dark);
  color: var(--text-primary);
}

.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left: Hero */
.login-hero {
  position: relative;
  /* Recolored hero using the new brand palette */
  background: radial-gradient(1200px 800px at -10% -10%, rgba(255, 163, 2, 0.15), transparent 60%),
              radial-gradient(1200px 800px at 110% 110%, rgba(4, 41, 84, 0.18), transparent 60%),
              #042954;
  overflow: hidden;
}

.login-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-03.jpg') center/cover no-repeat fixed;
  /* Slightly brighter to avoid heavy black feel */
  filter: saturate(1.05) contrast(1.0) brightness(0.95);
  opacity: 0.5;
}

.hero-overlay {
  position: absolute; inset: 0;
  /* Overlay tint aligned with navy -> orange scheme */
  background: linear-gradient(135deg, rgba(4, 41, 84, 0.60) 0%, rgba(4, 41, 84, 0.30) 60%, rgba(255, 163, 2, 0.16) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem;
}

.hero-content { max-width: 640px; text-align: center; }
.hero-title { font-weight: 700; letter-spacing: 0.3px; font-size: clamp(28px, 4vw, 42px); margin: 0 0 0.75rem; }
.hero-tag { color: var(--text-muted); font-size: clamp(14px, 1.6vw, 16px); margin: 0; }

/* Right: Auth Panel */
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* Make the panel a gradient of #f5f8ff variations */
  background: linear-gradient(180deg, var(--panel-blue-1), var(--panel-blue-2));
}
.panel-inner { width: min(520px, 92%); }

.card-glass {
  /* Switch card to light glass over the blue panel; remove #042954 */
  background: linear-gradient(180deg, var(--card-light-start), var(--card-light-end));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--card-light-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.panel-title { margin: 0 0 1rem; font-weight: 600; font-size: 20px; color: var(--text-dark); }
.field-label { display: inline-block; margin-bottom: 6px; color: var(--text-muted-dark); font-size: 12px; letter-spacing: 0.3px; }

/* Inputs: adapt to light card for readability */
.login-panel .card-glass .field-input,
.login-panel .card-glass .ui-inputfield,
.login-panel .card-glass .ui-password {
  background: #ffffff !important;
  color: var(--text-dark) !important;
  border: 1px solid #cbd5e1 !important; /* slate-300 */
  border-radius: 10px !important;
  padding: 10px 12px !important;
}

.login-panel .card-glass .ui-inputfield:focus,
.login-panel .card-glass .ui-password:focus {
  outline: none !important;
  border-color: #94a3b8 !important; /* slate-400 */
  box-shadow: 0 0 0 3px rgba(255, 163, 2, 0.15) !important; /* subtle orange focus */
}

.ui-message, .ui-messages, .ui-messages-error, .ui-messages-warn, .ui-messages-info {
  border-radius: 10px;
}

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.row-between.gap { gap: 10px; }

.btn-cta.ui-button, .btn-primary.ui-button {
  width: 100%;
  border: none !important;
  color: #0b1220 !important;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, var(--brand-accent) 0%, #ffd35e 100%) !important;
}

.btn-primary.ui-button { width: auto; padding: .6rem 1rem; color: #0b1220 !important; background: linear-gradient(135deg, #ffb02e, var(--brand-secondary)) !important; }

.link-muted { color: var(--text-muted); text-decoration: none; }
.link-muted:hover { color: var(--text-primary); text-decoration: underline; }
.link-accent { color: var(--brand-secondary); text-decoration: none; }
.link-accent:hover { color: #cc7f00; text-decoration: underline; }

.powered-by { margin-top: 12px; color: var(--text-muted); font-size: 12px; text-align: center; }
.powered-by span { color: var(--brand-secondary); }

/* Logo wrapper extracted from inline */
.logo-wrap {
  text-align: center;
  margin-bottom: 1rem;
}

/* Logo circle styles moved from inline */
.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-circle .login-logo {
  max-width: 70%;
  max-height: 70%;
  height: auto;
  width: auto;
}

/* Provider name styling between hero title and tag */
.hero-provider {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  color: var(--brand-accent);
}

/* Responsiveness */
@media (max-width: 992px) {
  .login-split { grid-template-columns: 1fr; }
  .login-hero { min-height: 40vh; }
}

@media (max-width: 480px) {
  .panel-inner { width: 94%; }
  .card-glass { padding: 22px 18px; }
}
