/* === GreenPro Login — finalna wersja z niebieskim przyciskiem i pastelowymi komunikatami === */

html, body {
  height: 100%;
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: #e4e8ed; /* tło jak app-content */
  color: #212529;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loginWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

/* Panel logowania */
.loginForm {
  position: relative;
  background: linear-gradient(135deg, rgba(68, 201, 167, 0.92), rgba(43, 179, 145, 0.88));
  border: none;
  border-radius: 24px;
  width: 400px;
  padding: 2.5rem 2rem 2rem 2rem;
  text-align: center;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: all 0.3s ease-in-out;
}
.loginForm:hover {
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.3),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Nagłówek */
.login-header {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #0a5de0, #064ab5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.25),
    0 4px 8px rgba(4, 60, 156, 0.35),
    0 0 18px rgba(77, 163, 255, 0.25);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* Komunikaty błędów i sukcesów – pastelowy styl */
.error-placeholder {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 10px;
  line-height: 1.4rem;
  padding: 10px 12px;
  min-height: 45px;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.3s ease;
  font-weight: 600;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.error-placeholder.show { opacity: 1; }
.error-placeholder.fade-out { opacity: 0; }

.error-placeholder.error {
  background: rgba(255, 86, 86, 0.25);
  border: 1px solid rgba(255, 86, 86, 0.45);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.error-placeholder.success {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #056b5a;
}

/* Formularz */
.loginForm form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 1rem;
  margin-top: 95px;
}

/* Etykiety */
.form-label {
  text-align: left;
  display: block;
  width: 70%;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 auto;
}

/* === Inputy — tło jak przycisk firmy + niebieski glow + autofill fix === */
.form-control {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #d2f1e6 0%, #bde8d9 100%);
  border: 1.5px solid #9fd7c6;
  color: #1b1f23;
  border-radius: 14px;
  padding: 10px 14px;
  width: 70%;
  text-align: center;
  font-size: 0.95rem;
  transition: box-shadow .25s ease, border-color .25s ease;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  caret-color: #0b6efd;
}

.form-control::placeholder { color: rgba(0, 0, 0, 0.45); font-weight: 500; }

/* Hover / Focus – niebieska ramka + lekki glow */
.form-control:hover,
.form-control:focus,
.form-control:focus-visible {
  border-color: #0b6efd !important;
  box-shadow:
    0 0 0 2px #0b6efd,
    0 0 12px rgba(11,110,253,.25),
    inset 0 1px 0 rgba(255,255,255,.75) !important;
  outline: none !important;
}

/* === Autofill fix — GreenPro z grubszą ramką === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  /* pastelowe tło – takie samo jak w inputach */
  -webkit-box-shadow:
    0 0 0px 1000px #bde0d3 inset,
    0 0 0 1px #0b6efd,
    0 0 14px rgba(11,110,253,0.25),        
    inset 0 1px 0 rgba(255,255,255,0.75) !important;

  /* dopasowanie tekstu i kursora */
  -webkit-text-fill-color: #1b1f23 !important;
  caret-color: #0b6efd !important;

  border-color: #0b6efd !important;
  border-width: 2px !important;
  border-radius: 14px !important;

  transition: background-color 9999s ease-in-out 0s;
}

/* Shake efekt */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}


/* Przycisk — niebieski */
.btn-success {
  background: linear-gradient(135deg, #0b6efd, #0a5de0) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  color: #fff !important;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 36px;
  margin-top: 15px;
  transition: all 0.25s ease-in-out;
  box-shadow:
    0 6px 16px rgba(11, 110, 253, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-success:hover {
  background: linear-gradient(135deg, #0a5de0, #064ab5) !important;
  box-shadow: 0 8px 20px rgba(11, 110, 253, 0.45);
  transform: translateY(-1px);
}

/* Stopka */
.app-footer {
  margin-top: auto;
  padding: 14px 0;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
  width: 100%;
}
.app-footer a {
  color: #6b7280;
  text-decoration: none;
}
.app-footer a:hover {
  color: #6b7280;
  text-decoration: underline;
}
