/* ═══════════════════════════════════════════════════
   DBPlugIn — Login Page Stylesheet
   File    : assets/css/login.css
   Version : 1.4.0
   Theme   : Matches dashboard — grey/white/orange
═══════════════════════════════════════════════════ */

:root {
  --page-bg:       #edf0f4;
  --card-bg:       #ffffff;
  --sidebar-bg:    #f8f9fb;
  --toolbar-bg:    #f4f6f9;
  --orange:        #f97316;
  --orange-dk:     #ea6a08;
  --orange-pale:   #fff7f0;
  --orange-border: #fbd5b0;
  --blue:          #1a3a5c;
  --blue-mid:      #2a5298;
  --blue-light:    #b8cce0;
  --blue-faint:    #e8eff6;
  --text-dark:     #1a2535;
  --text-mid:      #3a4d65;
  --text-soft:     #6a7f98;
  --text-faint:    #9ab0c8;
  --radius:        10px;
  --radius-lg:     14px;
  --shadow-card:   0 2px 8px rgba(26,58,92,0.08), 0 0 0 1px rgba(26,58,92,0.06);
  --shadow-hover:  0 4px 20px rgba(26,58,92,0.14);
  --trans:         0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #d4dae3; min-height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── Outer wrapper — matches dashboard shell style ── */
.page {
  width: 94%;
  max-width: 1200px;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(26,58,92,0.15),
    0 8px 40px rgba(26,58,92,0.18);
}

/* ── Top bar — matches dashboard header style ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 52px;
  background: #f2f4f7;
  border-bottom: 1px solid var(--blue-light);
  flex-shrink: 0;
}

.top-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.3px;
}
.top-brand span { color: var(--orange); }

.top-right {
  font-size: 12px;
  color: var(--text-faint);
}

/* ── Main two-column ── */
.main {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: var(--page-bg);
}

/* ═══════════════════════════════════════════════════
   LEFT PANEL — logo + disclaimer
═══════════════════════════════════════════════════ */
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 36px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--blue-light);
  overflow-y: auto;
}

/* Logo */
.logo-wrap {
  text-align: center;
  margin-bottom: 28px;
  width: 100%;
}

.logo-wrap img {
  width: 240px;
  max-width: 100%;
  height: auto;
}

.logo-fallback {
  display: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.logo-fallback span { color: var(--orange); }

.tagline {
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 8px;
  font-weight: 500;
}

/* Divider */
.left-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 0 auto 28px;
  border-radius: 2px;
}

/* Disclaimer block — prominent */
.left-disclaimer {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

/* Fade shadow at bottom to hint scrollable content */
.left-disclaimer::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.92));
  pointer-events: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: opacity 0.3s;
}

.left-disclaimer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--orange);
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

.left-disclaimer-body {
  padding: 16px;
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.85;
  border: 1px solid var(--blue-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-border) var(--toolbar-bg);
}

.left-disclaimer-body strong,
.left-disclaimer-body b {
  color: var(--text-dark);
  font-weight: 600;
}

.left-disclaimer-body a {
  color: var(--orange);
  text-decoration: none;
}
.left-disclaimer-body a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════
   RIGHT PANEL — login form
═══════════════════════════════════════════════════ */
.right-panel {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 36px 36px 32px;
  background: var(--card-bg);
  border-left: 1px solid var(--blue-light);
  overflow-y: auto;
}

/* Workspace block */
.workspace-block {
  padding: 16px 18px;
  background: var(--orange-pale);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.workspace-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.workspace-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.1;
}

.workspace-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

/* Form heading */
.form-heading {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--blue-light);
}

.form-heading h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.form-heading p {
  font-size: 13px;
  color: var(--text-soft);
}

/* Alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.55;
  border: 1px solid;
}

.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info  { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.alert-icon  { flex-shrink: 0; }

/* Fields */
.field { margin-bottom: 14px; }

label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-faint);
  pointer-events: none;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  background: var(--toolbar-bg);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 12px 11px 38px;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}

input:focus {
  border-color: var(--orange);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.10);
}

input::placeholder { color: var(--text-faint); }

/* Sign in button — orange */
.btn-login {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background: var(--orange);
  color: #ffffff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--trans), box-shadow var(--trans);
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.btn-login:hover  { background: var(--orange-dk); }
.btn-login:active { transform: scale(0.99); }

/* Divider */
.form-divider {
  height: 1px;
  background: var(--blue-light);
  margin: 18px 0;
}

/* Support section */
.support-section { margin-bottom: 16px; }

.support-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 7px;
}

.support-item a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}
.support-item a:hover { text-decoration: underline; }
.support-icon { font-size: 14px; flex-shrink: 0; opacity: 0.7; }

/* Sessions pill */
.sessions-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #15803d;
  font-weight: 500;
}

.sessions-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Bottom bar ── */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 28px;
  border-top: 1px solid var(--blue-light);
  background: #f2f4f7;
  font-size: 11.5px;
  color: var(--text-faint);
  flex-shrink: 0;
}

.bb-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}
.bb-brand span { color: var(--orange); }

.bottom-bar a { color: var(--text-faint); text-decoration: none; }
.bottom-bar a:hover { color: var(--orange); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 860px) {
  .page { width: 100%; min-height: 100vh; border-radius: 0; }
  body  { padding: 0; }
  .main { flex-direction: column; }
  .left-panel { border-right: none; border-bottom: 1px solid var(--blue-light); padding: 28px 24px; }
  .logo-wrap img { width: 180px; }
  .right-panel { width: 100%; padding: 28px 24px; border-left: none; }
}

@media (max-width: 480px) {
  .top-bar { padding: 0 16px; }
  .right-panel { padding: 20px 16px; }
  .bottom-bar { padding: 10px 16px; }
  .logo-wrap img { width: 150px; }
}