/* ==========================================
   Skupni slog za vstopno in SMS stran
   ========================================== */

/* Reset in osnovni slog */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  padding: 40px 15px;
  color: #333;
}

/* ===== Glavni okvir (za obe strani) ===== */
.form-box,
.sms-page {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 520px;
  width: 100%;
  margin: 60px auto;
  padding: 40px 35px;
  text-align: left;
}

/* ===== Logo ===== */
.logo-container {
  text-align: center;
  margin-bottom: 10px;
}

.logo-container img {
  max-width: 120px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* ===== Naslov ===== */
.form-box h1,
.sms-page h1 {
  text-align: center;
  font-size: 1.6rem;
  color: #DAA520;
  margin: 10px 0 25px;
}

/* ===== Besedilo in razmiki ===== */
p, span, .sms-instructions, .message-instructions {
  color: #333;
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

/* ===== Polja ===== */
label {
  display: block;
  margin-top: 14px;
  font-weight: bold;
  color: #DAA520;
}

input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  margin-bottom: 6px;
}

/* ===== Gumbi ===== */
input[type="submit"],
input[type="reset"],
button,
.logout-button {
  background-color: #DAA520;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.2;
  transition: background-color 0.2s ease, transform 0.1s ease;
  display: inline-block;
  min-width: 130px;
  text-align: center;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover,
.logout-button:hover {
  background-color: #B8860B;
  transform: scale(1.02);
}

/* Posebej za "Odjava" siv ton */
.logout-button {
  background-color: #ccc;
  color: #333;
}

.logout-button:hover {
  background-color: #999;
}

/* Skupine gumbov */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* ===== Sporočila (uspeh / napaka) ===== */
.form-message {
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease;
}

/* Uspešno sporočilo – zeleno */
.msg-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

/* Napaka – rdeče */
.msg-error {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff3cd;
  color: #856404;
  padding: 15px;
  text-align: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.cookie-banner button {
  background-color: #856404;
  color: #fff;
  border: none;
  padding: 8px 15px;
  margin-left: 15px;
  border-radius: 4px;
  cursor: pointer;
}

.cookie-banner button:hover {
  background-color: #6c4d03;
}

/* ===== Dinamično obnašanje footerja ===== */
footer {
  position: static;
  text-align: center;
  font-size: 0.9em;
  color: #6c757d;
  padding: 10px 0;
  margin-top: 30px;
}

body.short-page footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* ===== Login wrapper ===== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 80vh;
  padding-top: 60px;
}

/* ===== Dodatna skladnost ===== */
.sms-page hr {
  margin: 30px 0 15px;
  border: none;
  border-top: 1px solid #eee;
}

/* ===== Prilagoditev mobilnim napravam ===== */
@media (max-width: 480px) {
  body {
    padding: 20px;
  }

  .form-box,
  .sms-page {
    padding: 25px 20px;
  }

  input[type="submit"],
  input[type="reset"],
  button {
    width: 100%;
    min-width: unset;
  }
}

/* ===== Odjava centrirano ===== */
form[action="logout.php"] {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ===== Razmik med poljem za geslo in gumbom ===== */
.form-box input[type="password"] {
  margin-bottom: 15px;
}
