/* ==========================================================================
   GRANTWATCH BIH - GLAVNI UNIFICIRANI STILOVI (style.css)
   ========================================================================== */

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

:root {
  --teal: #00695C; 
  --teal-dark: #004D40; 
  --teal-bg: #E0F2F1; 
  --navy: #0B1B3D;
  --navy-light:#1A2C5B; 
  --bg: #F8F9FA; 
  --surface: #FFFFFF; 
  --border: #E2E8F0; 
  --text: #1E293B; 
  --text-dim: #64748B; 
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --red: #C62828;
}

body { 
  font-family: system-ui, -apple-system, sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
  overflow-x: hidden; 
}

/* --- GLOBALNI GLAVNI KONTEJNERI --- */
.main-section, .container {
  max-width: 1200px !important;
  width: 100%;
  margin: 40px auto;
  padding: 0 24px;
  flex: 1;
}

/* --- HEADER --- */
header { background: var(--navy); color: white; padding: 0 32px; height: 76px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header-logo { height: 45px; width: auto; max-width: 180px; object-fit: contain; }
.hamburger-btn { display: none; background: transparent; border: none; color: white; font-size: 28px; cursor: pointer; padding: 0; }
.menu-wrapper { display: flex; align-items: center; flex: 1; }
nav { display: flex; gap: 6px; margin: 0 auto; }
.nav-link { color: #E2E8F0; text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover { color: white; background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.btn { padding: 10px 20px; border-radius: 8px; border: none; font-size: 14px; cursor: pointer; font-weight: 600; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-primary { background: var(--teal); color: white; width: 100%; } 
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.4); color: white; } 
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.05); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--teal); cursor: pointer; font-weight: 700; font-size: inherit; padding: 0; text-decoration: underline; display: inline; }

/* --- HERO SEKCIJA --- */
.hero { 
  background-color: var(--navy); 
  position: relative; 
  color: white; 
  padding: 80px 24px 120px; 
  text-align: center; 
  border-bottom: 5px solid var(--teal); 
  overflow: hidden; 
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('bhgrant-hero-bg.png'); 
  background-size: cover; 
  background-position: center; 
  z-index: 1; 
  opacity: 0.4; 
  filter: invert(1) brightness(3) contrast(1.5); 
  mix-blend-mode: screen; 
  pointer-events: none; 
}

.hero-content { 
  max-width: 900px; 
  margin: 0 auto; 
  position: relative;
  z-index: 2; 
}

.hero-logo { height: auto; width: 100%; max-width: 320px; margin-bottom: 24px; filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.3)); }
.hero h1 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.hero p { font-size: 16px; color: #E2E8F0; max-width: 650px; margin: 0 auto; line-height: 1.6; }

.stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 20px 24px; display: flex; justify-content: center; gap: 60px; font-size: 15px; color: var(--text-dim); }
.stat strong { font-size: 22px; color: var(--navy); font-weight: 800; }

/* --- FILTERI --- */
.filter-bar { background: var(--surface); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search-wrapper { flex: 2; min-width: 220px; }
.search-input, select, .filter-input-sm { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; background: var(--bg); color: var(--text); }
select, .filter-input-sm { height: 42px; flex: 1; min-width: 160px; }
.checkbox-wrapper { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--teal); cursor: pointer; padding: 0 10px; }

/* --- KARTICE (GRID) --- */
.grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-bottom: 20px; 
}
.card { background: var(--surface); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 5px solid var(--teal); display: flex; flex-direction: column; justify-content: space-between; }
.card.is-new-badge { border-top-color: #00E5A0; }
.card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card-opis { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 16px; }
.card-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; font-size: 13px; background: var(--bg); padding: 12px 16px; border-radius: 8px; color: var(--text-dim); }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 8px; }
.card-link { font-size: 14px; color: var(--teal-dark) !important; background: var(--teal-bg); padding: 8px 16px; border-radius: 8px; text-decoration: none !important; font-weight: 700; transition: all 0.2s; display: inline-block; border: none; cursor: pointer; }
.card-link:hover { background: var(--teal); color: white !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 105, 92, 0.2); }

/* --- UNIFICIRANA PAGINACIJA SA STRELICAMA --- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.page-btn { background: var(--surface); border: 1px solid var(--border); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-width: 42px; text-align: center; }
.page-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); background: #fafafa; }
.page-btn.active { background: var(--teal); color: white; border-color: var(--teal); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; background: var(--bg); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.btn-back {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  transition: transform 0.2s;
}
.btn-back:hover { transform: translateX(-3px); }
.card-top { display: flex; flex-direction: column; }

/* --- FOOTER --- */
footer { 
  background: var(--navy); 
  color: white; 
  padding: 60px 24px 40px; 
  text-align: center; 
  margin-top: auto; 
  border-top: 1px solid rgba(255,255,255,0.1); 
}

.footer-content { 
  max-width: 1100px; 
  margin: 0 auto; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 35px; 
  width: 100%; 
}

.footer-top { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 12px; 
}

.footer-top img {
  height: 50px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.footer-email { 
  font-size: 15px; 
  color: #E2E8F0; 
} 
.footer-email a { 
  color: #00E5A0; 
  text-decoration: none; 
  font-weight: 600; 
  transition: color 0.2s; 
}
.footer-email a:hover { color: white; }

.footer-details { 
  display: flex; 
  flex-direction: row; 
  justify-content: center; 
  align-items: flex-start;
  gap: 100px; 
  width: 100%; 
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.details-group { 
  display: flex; 
  flex-direction: column; 
  gap: 10px;
  text-align: left;
  min-width: 250px;
} 
.details-group p { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  margin: 0; 
  color: #94A3B8; 
  font-size: 14px; 
  line-height: 1.5;
}
.details-group strong { color: #E2E8F0; }

.phone-link { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.phone-link:hover { color: white; }
.footer-icon { width: 16px; height: 16px; fill: #00E5A0; flex-shrink: 0; }

.footer-links { 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 16px; 
  font-size: 14px; 
}
.highlight-link { color: #00E5A0; font-weight: 700; text-decoration: none; transition: color 0.2s; }
.highlight-link:hover { color: white; }
.footer-links a:not(.highlight-link) { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-links a:not(.highlight-link):hover { color: white; }
.footer-copyright { font-size: 13px; color: #94A3B8; }
.footer-copyright a { color: #94A3B8; text-decoration: underline; transition: color 0.2s; }
.footer-copyright a:hover { color: white; }

@media (max-width: 768px) { 
  .footer-details { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    gap: 24px; 
  }
  .details-group {
    align-items: center;
    text-align: center;
    min-width: 100%;
  }
  .details-group p {
    justify-content: center;
  }
}

/* ==========================================================================
   SAAS STILOVI (Chatbot, Kanban, AI Modali)
   ========================================================================== */
/* --- MODERNIZOVANI AI CHATBOT STILOVI --- */
#chat-fab { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--teal) 0%, #26A69A 100%); border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(0,105,92,.4); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: white; z-index: 10000 !important; transition: transform .2s, box-shadow .2s; }
#chat-fab:hover { transform: scale(1.05) translateY(-2px); box-shadow: 0 6px 25px rgba(0,105,92,.5); }

#chat-panel { position: fixed; bottom: 6rem; right: 1.5rem; width: min(380px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 8rem)); background: #ffffff !important; border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08) !important; display: none; flex-direction: column; overflow: hidden; z-index: 9999 !important; border: 1px solid rgba(0,0,0,0.05); }
#chat-panel.otvoren { display: flex !important; animation: chatPopUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@keyframes chatPopUp { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

#chat-header { background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; color: white; }
.chat-close-btn { background: rgba(255,255,255,0.1); border: none; color: white; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.chat-close-btn:hover { background: rgba(255,255,255,0.25); }

#chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #F8FAFC; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.chat-msg.bot { background: #ffffff; border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text); }
.chat-msg.user { background: var(--teal); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

#chat-input-wrap { padding: 16px; background: #ffffff; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; }
#chat-input { flex: 1; border: 1px solid #CBD5E1; border-radius: 24px; padding: 12px 16px; font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: #F8FAFC; }
#chat-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,105,92,0.1); background: #ffffff; }
.chat-send-btn { background: var(--teal); color: white; border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, transform 0.1s; flex-shrink: 0; }
.chat-send-btn:hover { background: var(--teal-dark); transform: scale(1.05); }
.chat-send-btn:active { transform: scale(0.95); }

/* --- BENEFIT BANNER --- */
#benefit-banner { display: none; background: linear-gradient(135deg, #00695C 0%, #00897B 50%, #26A69A 100%); padding: 1rem 1.2rem; position: relative; overflow: hidden; max-height: 200px; opacity: 1; transition: opacity .3s ease, max-height .35s ease, padding .35s ease; animation: slideDown .4s ease; }
#benefit-banner.show   { display: block; }
#benefit-banner.hiding { opacity: 0; max-height: 0; padding: 0; }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bb-inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.bb-title { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; flex-shrink: 0; }
.bb-benefits { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.bb-chip { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: .28rem .75rem; font-size: .76rem; color: #fff; white-space: nowrap; display: flex; align-items: center; gap: .3rem; }
.bb-cta { background: #fff; color: #00695C; border: none; border-radius: 8px; padding: .45rem 1.1rem; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: transform .15s, box-shadow .15s; }
.bb-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.bb-close { background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.1rem; cursor: pointer; line-height: 1; flex-shrink: 0; padding: 2px 4px; }
.bb-close:hover { color: #fff; }

/* --- STRUKTURALNI STILOVI STRANICA --- */
#adminMainWrap { max-width: 800px; width: 100%; margin: 40px auto; padding: 0 24px; flex: 1; display: none; }
.admin-card { background: var(--surface); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 6px solid var(--navy); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.form-group.full-width { grid-column: 1 / -1; }
.admin-card label { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-card input, .admin-card select, .admin-card textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--bg); outline: none; font-family: inherit; transition: all 0.2s; }
.admin-card input:focus, .admin-card select:focus, .admin-card textarea:focus { border-color: var(--teal); background: white; }
.admin-card textarea { height: 140px; resize: vertical; }
.security-checking { text-align: center; padding: 100px 24px; font-size: 16px; color: var(--text-dim); font-weight: 600; }

.container:has(.faq-category) { max-width: 900px; }
.faq-category { margin-bottom: 40px; }
.faq-category h2 { font-size: 18px; font-weight: 800; color: var(--teal); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; border-left: 4px solid var(--teal); padding-left: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s; text-align: left; }
.faq-item:hover { transform: translateY(-2px); border-color: var(--teal); }
.faq-question { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.faq-answer { font-size: 14px; color: var(--text); line-height: 1.6; padding-left: 26px; text-align: left; }

.details-card { background: var(--surface); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 6px solid var(--teal); text-align: left; }
.details-header { margin-bottom: 24px; }
.details-title { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 12px; }
.details-body { margin-top: 32px; text-align: left; }
.details-body h2 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.details-text { font-size: 15px; color: var(--text); line-height: 1.7; white-space: pre-line; margin-bottom: 32px; text-align: left; }

.container:has(.last-updated) { max-width: 800px; padding: 40px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: left; }
.container h1 { color: var(--navy); font-size: 28px; font-weight: 800; margin-bottom: 12px; }

.auth-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { background: var(--surface); border-radius: 16px; padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow); border: 1px solid var(--border); text-align: left; }
.auth-card h1 { color: var(--navy); font-size: 24px; font-weight: 800; margin-bottom: 24px; text-align: center; }
.form-input { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; background: var(--bg); transition: all 0.2s; }

.profile-layout-container { max-width: 1350px; width: 100%; margin: 40px auto; padding: 0 24px; flex: 1; display: grid; grid-template-columns: 380px 1fr; gap: 32px; text-align: left; }
.profile-sidebar { background: var(--surface); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--border); border-top: 6px solid var(--navy); }

/* --- RESPONSIVE PREKLOPI --- */
@media (max-width: 900px) { 
  .hamburger-btn { display: block; }
  .menu-wrapper { position: fixed; top: 76px; left: -100%; width: 100%; height: calc(100vh - 76px); overflow-y: auto; padding-bottom: 60px; background: var(--navy); flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 40px; gap: 30px; transition: left 0.3s ease-in-out; z-index: 99; }
  .menu-wrapper.active { left: 0; }
  .menu-wrapper nav { display: flex; flex-direction: column; text-align: center; gap: 16px; width: 100%; order: 1; margin: 0; }
  .header-actions { flex-direction: column; width: 80%; gap: 16px; order: 2; }
  .profile-layout-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) { 
  .filter-bar { flex-direction: column; align-items: stretch; } 
  .grid { grid-template-columns: 1fr; } 
}

@media (max-width: 600px) {
  .bb-title { display: none; }
  .bb-chip  { font-size: .71rem; padding: .22rem .6rem; }
}

/* --- TOAST NOTIFIKACIJE (OČIŠĆENO OD GREŠAKA) --- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1E293B; color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 9999; pointer-events: none; box-shadow: 0 4px 20px rgba(0,0,0,.25); max-width: 420px; text-align: center; animation: toastSlideUp .3s ease; } 
.toast-success { border-left: 4px solid #00897B; } 
.toast-error   { border-left: 4px solid #DC2626; } 
.toast-warning { border-left: 4px solid #D97706; } 
.toast-info    { border-left: 4px solid #1D4ED8; } 
@keyframes toastSlideUp { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

#notifikacije-panel.aktivan { display: block !important; }
/* Pametni presretač: Čim JS aktivira block stil, prisilno ga učini 100% vidljivim */
#chat-panel[style*="display: block"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: all !important;
  transform: translateY(0) !important;
}

/* ========================================= */
/* FIX ZA ISKAČUĆE PROZORE (MODALE)          */
/* ========================================= */

.modal-overlay {
  display: none; /* Sakriva prozor dok se ne pozove */
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  align-items: center; 
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* Kada JS doda klasu 'aktivan', prozor se prikazuje */
.modal-overlay.aktivan {
  display: flex !important; 
}

.saas-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  animation: modalPopUp 0.3s ease-out forwards;
}

@keyframes modalPopUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hover efekti za novu Konkurs karticu */
#btnSaasAiAnaliza:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,105,92,0.3) !important; }
#btnSaasKanbanPrati:hover { background: #f5f3ff !important; }
#btnZvanicniLink:hover { transform: scale(1.05); }

/* Popravak boje za email link u footeru */
.footer-mail-link {
  color: inherit; /* Preuzima istu boju koju imaju i ostala slova oko njega */
  text-decoration: none; /* Uklanja donju liniju (underline) */
  transition: color 0.2s ease;
}

.footer-mail-link:hover {
  color: #00E5A0; /* Zasvijetli u prepoznatljivu zelenu boju kada se pređe mišem */
}

/* ========================================= */
/* MODERNA KARTICA ZA PRIJAVU I REGISTRACIJU */
/* ========================================= */
.saas-auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
}

.saas-auth-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.saas-auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.saas-auth-header h1 {
  color: var(--navy);
  font-size: 28px;
  margin: 0 0 8px 0;
}

.saas-auth-header p {
  color: #64748b;
  font-size: 15px;
  margin: 0;
}

.saas-input-group {
  margin-bottom: 20px;
}

.saas-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saas-input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.saas-input-group input:focus {
  border-color: #00695C;
  box-shadow: 0 0 0 3px rgba(0, 105, 92, 0.1);
  background: #ffffff;
}

.saas-auth-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00695C 0%, #26A69A 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,105,92,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.saas-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,105,92,0.35);
}

.saas-auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #64748b;
}

.saas-auth-footer a {
  color: #00695C;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.saas-auth-footer a:hover {
  color: #004d40;
  text-decoration: underline;
}

#loginError, #regError {
  background: #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #fecaca;
  display: none;
  font-weight: 500;
}
