* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #1e1f20;
  font-family: sans-serif;
}
h1{
  color: #e3e3e3;
  font-family: sans-serif;
  font-weight: 100;
  font-size: 40px;
}
p{
  color: #e3e3e3;
  font-family: sans-serif;
}
a{
  border-radius: 10px;
  color: #e3e3e3;
  font-family: sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  text-decoration: none;
}
#slikaaa{
  
  width: 48px;
  height: 48px;
}
a:hover{
  background-color: #2b2b2b;
}
input[type="text"]{
  width: 90%;
  color: #e3e3e3;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 28px;
  margin: 15px 0;
  padding: 12px 14px;
}
::placeholder{
  color: #aeaeae;
}

#megadiv {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#main {
  margin: auto;
}
#instructions{
  margin: auto;
  background-color: #0e0e0e;
  width: 1040px;
  height: 384px;
  border-radius: 35px;
}
#middle{
  height: 60%;
}
#create_account{
  background-color: transparent;
  margin-right: 20px;
  height: 40px;
  width: 100px;
  border: 0px;
  border-radius: 100px;
  color: #a8c7fa;
}
#create_account:hover{
  background-color: #252b2a;  
}
#register, #login{
  height: 40%;
  width: 100%;
  justify-content: center;
  align-items: center; 
}

#centering{
  align-items: center;
  justify-content: center;
  display: flex;
  height: 100%;
  width: 100%;
}

#registracija, #prijava {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px;
  width: 30%;
  background-color: #a8c7fa;
  margin: auto;
  font-family: sans-serif;
  border-radius: 6px;
  font-size: 1.5em; /* scales with parent font */
  padding: 0.5em 1em;
} 
#registracija:hover {
  background-color: #bed1f3; /* new color when hovering */
  cursor: pointer;           /* changes cursor to pointer */
}

#prijava:hover {
  background-color: #bdceec; /* new color on hover */ 
  cursor: pointer;
}

#left{
  height: 100%;
  width: 50%;
  float: left;
}
#get_instructed{
  padding: 40px;
}
#get_instructed h1{
  padding-top: 20px;
}
#get_instructed p{
  font-size: 16px;
  padding-top: 20px;
}

#right {
  position: relative; /* nujno za absolute positioning */
  height: 100%;
  width: 50%;
  float: right;
  display: flex;
  align-items: center;
  justify-content: center;
}
#date_form_div{
  width: 75%;
}
#name_form_div {
  padding: 40px;
  width: 200%;
}
#bottom_right {
  position: absolute;
  bottom: 40px;
  right: 40px;
}
#create_account:hover{
  cursor: pointer;
}
#next_button{
  cursor: pointer;
  font-weight: bold;
  color: #062e6f;
  height: 40px;
  width: 75px;
  background-color: #a8c7fa;
  border-color: transparent;
  border-radius: 100px;
}

/* celoten spodnji menu*/
#undermenu{
  margin: auto;
  height: 64px;
}
#language{
  display: flex;
  align-items: center;
  height: 100%;
  float: left;
}
#under_container{
  display: flex;
  align-items: center;
  height: 100%;
  float: right;
}
#under_container a{
  padding: 8px 12px;
}
#password-wrapper {
  position: relative;
  width: 100%; 
}

#password-wrapper input {
  width: 100%;
  padding-right: 45px; /* add space for the icon */
}

#prikaz {
  position: absolute;
  right: 65px;       
  top: 50%;
  transform: translateY(-50%);
  width: 22px;     
  height: 22px;
  cursor: pointer;
  opacity: 0.7;
}
#prikaz:hover {
  opacity: 1;
}

#lang_div{
  box-shadow: 0 0 10px 0 #161616; /* 10px naredi senco blurred*/
  border-radius: 5px;
  padding: 10px;
  background-color: #303134;
}
#lang_button{
  border-color: transparent;
  background-color: transparent;
  border-radius: 10px;
  color: #e3e3e3;
  font-family: sans-serif;
  font-size: 13px;
  padding: 8px 12px;
  text-decoration: none;
}
#lang_button:hover{
  cursor: pointer;
  background-color: #2b2b2b;
}
#date{
  width: 80%;
  height: 48px;
  padding: 12px 14px;
}
option {
  background-color: #111;
  color: white;
  
}

#gender{
  width: 80%;
  color: #e3e3e3;
  background-color: transparent;
  border: 0px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  padding: 12px 14px;
}
#datum{
  width: 90%;
  color: #e3e3e3;
  background-color: transparent;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 3px;
}
#spol{
  width: 100%;
  color: #e3e3e3;
  background-color: transparent;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 3px;
}
input{
  color-scheme: dark;
}


input[type="email"]{
  width: 90%;
  color: #e3e3e3;
  border-width: 0px ;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 28px;
  margin: 15px 0;
  padding: 12px 14px;
}
input[type="tel"]{
  width: 90%;
  color: #e3e3e3;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 28px;
  margin: 15px 0;
  padding: 12px 14px;
}
input[type="password"]{
  width: 90%;
  color: #e3e3e3;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 28px;
  margin: 15px 0;
  padding: 12px 14px;
}

input[type="text"]{
    width: 90%;
  color: #e3e3e3;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 28px;
  margin: 15px 0;
  padding: 12px 14px;
}

#password_form{
  width: 100%;
}

/* za responsive design */
@media (max-width: 960px) {
  body{
    background-color: #0e0e0e;
  }
  #megadiv{
    background-color: #0e0e0e;
  }

  #prikaz{
    right: 50px;       
    top: 50%;
  }
  #main{
    width: 100%;
    height: 100%;
  }
  #instructions{
    width: 100%;
  }
}

@media(max-width: 700px) {
  #left{
    float: left;
    height: auto;
    width: 100%;
  }
  #prikaz{
    right: 20px;
  }
  #prikaz{
    right: 125px;       
    top: 26%;
  }
  #right{
    float: left;
    height: auto;
    width: 100%;
    display: block;
  }
  #bottom_right{
    margin-top: 20px;
    position: inherit;
    display: flex;
    justify-content: right;
  }
  
  #name_form_div{
    padding: 20px 40px;
    width: 80%;
  }
  #prijava, #registracija {
    width: 70%;
  }
  #undermenu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #language, #under_container {
    height: 50%;
  }
  #next_button, #create_account{
    margin-top: 55px;
  }
  #date_form_div{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #date_form{
    width: 90%;
  }
  #date{
    width: 80%;

  }
  #gender{
    width: 82%;
  }
  #ger_instructed{
    padding: 20px;
  }
}

#forgot_email {
  display: block;
  color: #a8c7fa;
  font-size: 14px;
  font-weight: bold;
  margin-top: 8px;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
}
#forgot_email:hover {
  text-decoration: underline;
  background-color: transparent;
}

#guest_mode_text {
  margin-top: 32px;
  font-size: 14px;
  color: #000000#3;
  max-width: 88%;
  line-height: 1.6;
  padding: 0;
}
#guest_mode_text a {
  display: inline;
  color: #a8c7fa;
  font-size: 14px;
  padding: 0;
  text-decoration: none;
  font-weight: bold;
}
#guest_mode_text a:hover {
  text-decoration: underline;
  background-color: transparent;
}

/* Email pill on password_login page */
#email_pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  border: 1px solid #8e918f;
  border-radius: 100px;
  padding: 9px 16px 9px 12px;
  cursor: pointer;
  color: #e3e3e3;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  background-color: #0e0e0e;
  width: fit-content;
}
#email_pill:hover {
  background-color: #1a1a1a;
}
#email_pill svg {
  flex-shrink: 0;
}
#email_pill_text {
  color: #e3e3e3;
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.3px;
}
#email_pill_arrow {
  font-size: 7px;
  color: #e3e3e3;
  margin-left: 4px;
  display: flex;
  align-items: center;
}

/* Labeled password input (Enter your password) */
#password-wrapper {
  position: relative;
  width: 100%;
  margin: 20px 0 0 0;
}
#password_label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9aa0a6;
  background-color: transparent;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.15s ease;
  z-index: 1;
}
#password-wrapper input[type="password"]:focus ~ #password_label,
#password-wrapper input[type="password"]:not(:placeholder-shown) ~ #password_label,
#password-wrapper input[type="text"]:focus ~ #password_label,
#password-wrapper input[type="text"]:not(:placeholder-shown) ~ #password_label {
  top: 0;
  font-size: 12px;
  color: #a8c7fa;
  background-color: #0e0e0e;
}
#password-wrapper input[type="password"],
#password-wrapper input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  color: #e3e3e3;
  background-color: #0e0e0e;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 64px;
  padding: 12px 14px;
  margin: 0;
  outline: none;
  transition: border-color 0.15s ease;
}
#password-wrapper input[type="password"]:focus,
#password-wrapper input[type="text"]:focus {
  border: 2px solid #a8c7fa;
}

/* Show password checkbox row */
#show_password_row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
#show_pw_checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #0e0e0e;
  border: 1px solid #8e918f;
  border-radius: 3px;
  position: relative;
}
#show_pw_checkbox:checked {
  background-color: #0e0e0e;
  border-color: #a8c7fa;
}
#show_pw_checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #a8c7fa;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
#show_pw_label {
  color: #e3e3e3;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* Forgot password link */
#forgot_password {
  color: #a8c7fa;
  font-size: 14px;
  text-decoration: none;
  margin-right: 20px;
}
#forgot_password:hover {
  text-decoration: underline;
  background-color: transparent;
}
/* Floating label for email input on index.html */
#email-wrapper {
  position: relative;
  width: 90%;
  margin: 15px 0 0 0;
}
#email-wrapper input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  color: #e3e3e3;
  background-color: #0e0e0e;
  border-radius: 4px;
  border: 1px solid #8e918f;
  font-family: sans-serif;
  font-size: 16px;
  height: 56px;
  padding: 12px 14px;
  margin: 0;
  outline: none;
  transition: border-color 0.15s ease;
}
#email-wrapper input[type="email"]:focus {
  border: 2px solid #a8c7fa;
}
#email_label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9aa0a6;
  background-color: transparent;
  padding: 0 4px;
  pointer-events: none;
  transition: all 0.15s ease;
  z-index: 1;
}
#email-wrapper input[type="email"]:focus ~ #email_label,
#email-wrapper input[type="email"]:not(:placeholder-shown) ~ #email_label {
  top: 0;
  font-size: 12px;
  color: #a8c7fa;
  background-color: #0e0e0e;
}
#forgot_email {
  display: block;
  color: #a8c7fa;
  font-size: 14px;
  font-weight: bold;
  margin-top: 6px;
  padding: 0;
  text-decoration: none;
  border-radius: 0;
}

/* ── Mobile keyboard fix: stop vertical centering so keyboard doesn't break layout ── */
@media (max-width: 640px) {
  html, body {
    height: 100%;
    overflow-y: auto;
  }
  body {
    background-color: #0e0e0e;
  }
  #megadiv {
    height: auto;
    min-height: unset;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    display: block;
  }
  #main {
    width: 100%;
    height: auto;
  }
  #instructions {
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    flex-direction: column;
  }
  #left, #right {
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }
  #bottom_right {
    position: static !important;
    display: flex;
    justify-content: flex-end;
    padding: 16px 0 8px;
  }
  #name_form_div {
    padding: 20px 24px !important;
    width: 100% !important;
  }
  #undermenu {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    height: auto !important;
  }
  #language, #under_container {
    float: none !important;
    height: auto !important;
  }
}
