/* ============================================================
   efetech EnMS — Custom Login Page Styles
   Nadpisuje domyślny wygląd shinymanager
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@600;700&display=swap');

/* --- Tło --- */
body,
.container-fluid,
#auth-auth-mod {
  background: linear-gradient(135deg, #0a3d2e 0%, #1a5c45 35%, #1565a8 100%) !important;
  min-height: 100vh !important;
  font-family: 'Lato', sans-serif !important;
}

/* Subtelna siatka w tle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* --- Panel logowania --- */
.panel.panel-primary {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.97) !important;
  border-radius: 16px !important;
  border: none !important;
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  overflow: hidden;
  max-width: 420px;
  width: 90%;
  margin: 60px auto !important;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Logo --- */
img.login-logo {
  display: block !important;
  margin: 24px auto 12px !important;
  height: 70px !important;
  width: auto !important;
}

/* --- Tytuł i podtytuł --- */
p.login-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a3a2a !important;
  text-align: center !important;
  margin: 0 0 2px !important;
  letter-spacing: 0.3px;
}

p.login-subtitle {
  font-family: 'Lato', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  text-align: center !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  margin: 0 0 8px !important;
}

/* --- Nagłówek "Proszę o uwierzytelnienie" --- */
#auth-shinymanager-auth-head,
h3#auth-shinymanager-auth-head {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  text-align: center !important;
  border-bottom: 1px solid #f3f4f6 !important;
  padding-bottom: 16px !important;
  margin: 0 0 20px !important;
}

/* --- Ciało formularza --- */
.panel-body {
  padding: 20px 36px 28px !important;
  background: #fff !important;
}

/* Etykiety */
.panel-body label {
  font-family: 'Lato', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #6b7280 !important;
  margin-bottom: 6px !important;
}

/* Pola input */
.panel-body input.form-control {
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 15px !important;
  color: #111827 !important;
  background: #f9fafb !important;
  box-shadow: none !important;
  transition: border-color 0.2s, background 0.2s !important;
  height: auto !important;
}

.panel-body input.form-control:focus {
  border-color: #1565a8 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(21, 101, 168, 0.12) !important;
}

/* --- Przycisk logowania --- */
.btn-primary,
button.btn-primary {
  background: linear-gradient(135deg, #1a5c45 0%, #1565a8 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 24px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: #fff !important;
  width: 100% !important;
  margin-top: 8px !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.1s !important;
  box-shadow: 0 4px 12px rgba(21, 101, 168, 0.25) !important;
}

.btn-primary:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
}

/* --- Komunikat błędu --- */
#auth-result_auth {
  border-radius: 8px !important;
  border: none !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  padding: 10px 14px !important;
  margin-top: 12px !important;
}

/* --- Stopka --- */
.login-footer {
  background: #f9fafb !important;
  border-top: 1px solid #f3f4f6 !important;
  padding: 14px 40px !important;
  text-align: center !important;
  font-size: 11px !important;
  color: #9ca3af !important;
  letter-spacing: 0.5px;
}

/* --- Grup formularza --- */
.form-group {
  margin-bottom: 18px !important;
}


#auth-result_auth:empty {
  display: none !important;
}