@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Poppins:ital,wght@1,200&family=Roboto:wght@300&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #046e0a;
  --color-secondary: #f58f14;
  --color-error: #f58888;
  --color-secondary-dark: #e67409;
  --color-primary-soft: #31834a;
  --color-primary-dark: #033b15;
  --color-primary-darkest: #034a19;
  --color-primary-transparent: #35634373;
}

body {
  font-family: "Montserrat", sans-serif;
  background: url("../img/bg-img1.png") no-repeat center;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--color-primary-dark);
  backdrop-filter: blur(5px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow:hidden;
}

/* .form_field {
  position: relative;
}

.fa-eye {
  position: absolute;
  top: 40%;
  right: 1rem;
  cursor: pointer;
  color: #7a797e;
} */

/************************** TOOLTIP CSS - START **************************/
#question-mark {
  margin-left: 0.3rem;
  border-radius: 20px;
  background-color: rgb(105, 103, 103);
  color: white;
  /* background-color: var(--color-secondary); */
  /* color: black; */
  font-size: 1rem;
}

[data-title]:hover:after {
  opacity: 1;
  transition: all 0.1s ease 0.5s;
  visibility: visible;
}

[data-title]:after {
  content: attr(data-title);
  background-color: var(--color-secondary);
  color: #111;
  font-size: 0.8rem;
  position: absolute;
  padding: 2px 4px;
  max-height: 5rem;
  width: 11rem;
  bottom: -1.6em;
  left: 100%;
  /* white-space: wrap; */
  /* word-wrap: break-word; */
  overflow: hidden;
  box-shadow: 1px 1px 3px #222222;
  opacity: 0;
  border: 1px solid #111111;
  z-index: 99999;
  visibility: hidden;
}

[data-title] {
  position: relative;
}
/************************** TOOLTIP CSS - END **************************/

/************************** FORM CSS - START **************************/
.container {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 450px;
  max-width: 80vw;
  max-height: 90vh;
  overflow: auto;
}

.container-test {
  background-color: var(--color-primary-soft);;
  border-radius: 5px;
  box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 450px;
  max-width: 80vw;
  max-height: 90vh;
  overflow: auto;
}

h2 {
  color: #046e0a;
  padding: 1.5rem 0;
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
}

h4 {
  color: #046e0a;
  text-align: center;
  margin-top: 1rem;
}

h4 a {
  text-decoration: none;
}

form {
  padding: 1.25rem 2.5rem;
}

.form_field {
  margin-top: 0.625rem;
  padding-bottom: 1.5rem;
}

.form_field label {
  display: inline-block;
  margin-bottom: 5px;
}

.form_field input {
  border: 2px solid white;
  border-radius: 4px;
  display: block;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.625rem;
  width: 100%;
  border-bottom: 2px solid var(--color-primary);
}

.form_field input:focus {
  outline: 0;
  border-bottom: 2px solid var(--color-secondary);
}

.submit-button {
  background-color: var(--color-primary);
  border: 2px solid;
  border-radius: 4px;
  color: #fff;
  display: block;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.625rem;
  width: 100%;
  cursor: pointer;
}
/************************** FORM CSS - END **************************/

/************************** ERRORMSG CSS - START **************************/
.errors {
  display: none;
}

.errors.show {
  display: block;
}

.errors {
  background-color: var(--color-error);
  border-radius: 0.5rem;
  padding: 1rem;
  color: hsl(0, 50%, 20%);
  margin-bottom: 1rem;
}

.error-title {
  margin: 0;
  margin-bottom: 0.5rem;
  text-align: center;
}

.errors-list {
  margin: 0;
  padding-left: 1rem;
}

.message,
.message-success {
  width: 80%;
  padding: 5px;
  margin: 8px auto;
  border-radius: 5px;
  font-size: 12px;
  background-color: #f58888;
  color: white;
}

/************************** ERRORMSG CSS - END **************************/

/************************** MODAL CSS - START **************************/
#login-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* koristimo scale umesto display:none jer mozemo da odradimo tranziciju */
  transition: 200ms ease-in-out;
  border: 1px solid var(--color-primary-transparent);
  border-radius: 10px;
  z-index: 10;
  background-color: var(--color-primary-dark);
  width: 500px;
  max-width: 80vw;
  font-family: inherit;
}

#login-alert.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-secondary);
}

.modal-header .modal-header-text {
  font-size: 1.5rem;
  font-weight: bold;
  /* color: rgb(230, 115, 115); */
  color: var(--color-secondary-dark);
}

.modal-header .close-button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.modal-body {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: white;
}

.modal-body label {
  color: white;
}

#overlay {
  position: fixed;
  opacity: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  /* pointer-events dozvoljavaju da kliknemo kroz position:fixed tj. da overlay ne hvata click evente*/
  pointer-events: none;
  transition: 200ms ease-in-out;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}
/************************** MODAL CSS - END **************************/

