@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   SYNTARA DOCS - Modern Corporate Identity Theme
   Design System: SYNTARA DOCS & Calderón Cardona S.A.S.
   Palette: Deep Navy (#0b233f), Corporate Blue (#0078d4), Pure White (#ffffff)
   ========================================================================== */

:root {
  --pngx-primary: 212, 70%;
  --pngx-primary-lightness: 42%;
  --bs-primary: #0078d4 !important;
  --bs-primary-rgb: 0, 120, 212 !important;
  --bs-link-color: #0078d4 !important;
  --bs-link-hover-color: #005a9e !important;
  --syntara-font: 'Montserrat', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Top Navigation Bar --- */
.navbar.bg-primary,
body:not(.primary-light):not(.primary-dark) .navbar.bg-primary,
[data-bs-theme=dark] body:not(.primary-light):not(.primary-dark) .navbar.bg-primary,
[data-bs-theme=auto] body:not(.primary-light):not(.primary-dark) .navbar.bg-primary {
  background: linear-gradient(90deg, #07192d 0%, #0b233f 45%, #0e2d50 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Navbar Brand & Logo */
.navbar-brand {
  font-family: var(--syntara-font) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04rem;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem;
}

.navbar-brand img,
pngx-logo img,
pngx-brand-mark img {
  max-height: 38px !important;
  width: auto !important;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 6px rgba(0, 120, 212, 0.4));
}

.navbar-brand .title {
  font-family: var(--syntara-font) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06rem !important;
  color: #ffffff !important;
}

.navbar-brand .byline {
  font-size: 0.65rem !important;
  color: #94a3b8 !important;
  letter-spacing: 0.04rem !important;
}

/* Navbar search bar */
.navbar input[type="search"] {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
}
.navbar input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}
.navbar input[type="search"]:focus {
  background-color: rgba(255, 255, 255, 0.18) !important;
  border-color: #00a4ef !important;
  box-shadow: 0 0 0 3px rgba(0, 164, 239, 0.25) !important;
}

/* --- Buttons --- */
.btn-primary {
  background-color: #0078d4 !important;
  border-color: #0078d4 !important;
  color: #ffffff !important;
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #005a9e !important;
  border-color: #004578 !important;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.35) !important;
}

.btn-outline-primary {
  color: #0078d4 !important;
  border-color: #0078d4 !important;
}
.btn-outline-primary:hover {
  background-color: #0078d4 !important;
  border-color: #0078d4 !important;
  color: #ffffff !important;
}

/* --- Active Items & Links --- */
.nav-pills .nav-link.active,
.sidebar .nav-link.active {
  background-color: #0078d4 !important;
  color: #ffffff !important;
  border-radius: 6px;
}

.sidebar .nav-link {
  transition: color 0.15s, background-color 0.15s;
}

.sidebar .nav-link:hover:not(.active) {
  background-color: rgba(0, 120, 212, 0.08);
  color: #0078d4 !important;
}

/* Badges & Accents */
.badge.bg-primary {
  background-color: #0078d4 !important;
}

.form-check-input:checked {
  background-color: #0078d4 !important;
  border-color: #0078d4 !important;
}
.form-control:focus,
.form-select:focus {
  border-color: #0078d4 !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 120, 212, 0.2) !important;
}

.progress-bar {
  background-color: #0078d4 !important;
}

/* ==========================================================================
   AUTHENTICATION & LOGIN PORTAL
   ========================================================================== */

body.syntara-auth-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #102e50 0%, #0b233f 45%, #051426 100%) !important;
  font-family: var(--syntara-font) !important;
  color: #f1f5f9;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem 1rem;
}

body.syntara-auth-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 120, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 164, 239, 0.08) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.syntara-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(11, 35, 63, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 2.75rem 2.25rem 2rem 2.25rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 120, 212, 0.15) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Native Brand Lockup (No square box, clean extracted components) */
.syntara-brand-lockup {
  margin-bottom: 2.25rem;
  text-align: center;
}

.syntara-brand-lockup .brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.syntara-brand-lockup .brand-emblem {
  width: 60px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 120, 212, 0.4));
}

.syntara-brand-lockup .brand-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.syntara-brand-lockup .brand-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.12rem !important;
  line-height: 0.92 !important;
  margin: 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
}

.syntara-brand-lockup .brand-docs {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.42rem !important;
  line-height: 1 !important;
  margin-top: 0.35rem !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Tagline: GESTIÓN DOCUMENTAL perfectly aligned in font, weight and uppercase tracking */
.syntara-brand-lockup .brand-tagline {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.24rem !important;
  margin-top: 0.85rem !important;
  text-align: center !important;
  opacity: 0.95 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

/* Strict Alignment: Wrapper for all interactive elements */
.auth-controls-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.form-accounts {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Microsoft 365 SSO Button - Exact width & borders */
.btn-ms365 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-ms365:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.4) !important;
}

.btn-ms365:active {
  transform: translateY(0);
}

.btn-ms365 svg {
  flex-shrink: 0;
}

/* Divider */
.syntara-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.75rem 0 1.5rem 0;
  width: 100%;
}

.syntara-divider::before,
.syntara-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.syntara-divider span {
  padding: 0 0.85rem;
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  font-weight: 600;
  font-family: var(--syntara-font);
}

/* Local Login Inputs & Container - Strict Alignment */
.form-floating {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.syntara-auth-card .form-control {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(6, 19, 36, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
  border-radius: 10px !important;
  padding: 1rem 1rem !important;
  font-size: 0.95rem !important;
}

.syntara-auth-card .form-control:focus {
  background: rgba(6, 19, 36, 0.92) !important;
  border-color: #0078d4 !important;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3) !important;
  color: #ffffff !important;
}

.syntara-auth-card .form-floating label {
  color: #94a3b8 !important;
  padding: 1rem 1rem !important;
}

.syntara-auth-card .btn-signin-local {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-family: var(--syntara-font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1rem !important;
  border-radius: 10px !important;
  transition: all 0.2s;
  cursor: pointer;
}

.syntara-auth-card .btn-signin-local:hover {
  background: linear-gradient(135deg, #106ebe 0%, #004578 100%) !important;
  box-shadow: 0 6px 18px rgba(0, 120, 212, 0.45) !important;
  transform: translateY(-1px);
}

/* Footer Section: Calderón Cardona S.A.S. + Powered by */
.syntara-auth-footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
}

.provider-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.provider-badge-label {
  font-family: var(--syntara-font);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: #64748b;
}

.provider-badge-link {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.provider-badge-img {
  height: 32px;
  width: auto;
  opacity: 0.85;
  transition: all 0.25s ease-in-out;
  filter: brightness(0.95);
}

.provider-badge-link:hover .provider-badge-img {
  opacity: 1;
  filter: brightness(1.1) drop-shadow(0 2px 10px rgba(0, 120, 212, 0.5));
  transform: scale(1.04);
}

.powered-by {
  font-size: 0.76rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.powered-by a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.powered-by a:hover {
  color: #38bdf8;
  text-decoration: underline;
}
