@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --- Background --- */
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

/* Decorative blurred blobs */
body::before,
body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

body::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: blobFloat 8s ease-in-out infinite alternate;
}

body::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.1); }
}

/* --- Login Card --- */
.prijava-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 36px 36px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Accent strip at top of card */
.prijava-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #3b82f6, #f59e0b);
}

.prijava-box {
  width: 100%;
  order: 2;
}

/* --- Logo above form --- */
.logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  order: 1;
}

.logo-box img {
  width: 220px;
  height: auto;
  filter: brightness(1.1) drop-shadow(0 2px 12px rgba(59, 130, 246, 0.15));
}

/* --- Error Message --- */
#greska-poruka {
  font-size: 13px;
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 500;
}

/* --- Form Groups --- */
.unos-grupe {
  margin-bottom: 20px;
}

.unos-grupe label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

.unos-grupe input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.5);
  transition: all 0.2s ease;
  outline: none;
}

.unos-grupe input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(15, 23, 42, 0.8);
}

.unos-grupe input::placeholder {
  color: #475569;
}

/* --- Submit Button --- */
button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}

button::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

button:active {
  transform: translateY(0);
}

/* --- Footer: Powered by Rubika --- */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: center;
  padding: 16px 0;
  z-index: 1;
}

footer p {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.5);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

footer img.footer-logo {
  width: 80px;
  height: auto;
  vertical-align: middle;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

footer img.footer-logo:hover {
  opacity: 0.7;
}

/* --- Desktop: wider card with side-by-side --- */
@media (min-width: 768px) {
  .prijava-container {
    flex-direction: row;
    max-width: 700px;
    padding: 48px;
    gap: 40px;
  }

  .prijava-container::before {
    left: 48px;
    right: 48px;
  }

  .prijava-box {
    width: 55%;
    order: 1;
  }

  .logo-box {
    width: 45%;
    order: 2;
    margin-bottom: 0;
  }

  .logo-box img {
    width: 240px;
  }
}

/* --- Mobile --- */
@media (max-width: 767px) {
  body::before {
    width: 300px;
    height: 300px;
  }

  body::after {
    width: 250px;
    height: 250px;
  }

  .prijava-container {
    padding: 36px 28px 28px;
  }

  .logo-box img {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .prijava-container {
    max-width: 100%;
    padding: 32px 20px 24px;
    border-radius: 20px;
  }

  .logo-box img {
    width: 160px;
  }

  button {
    font-size: 14px;
    padding: 13px;
  }

  .unos-grupe input {
    font-size: 14px;
    padding: 12px 14px;
  }
}
