/*  GLOBAL  -------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500&display=swap');

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{
    background:url("../../media/login/1.jpeg") center/cover no-repeat;
    font-family:"Montserrat",sans-serif;
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:2rem;
}

/*  NASLOV  -------------------------------------------------------------- */
h2{
    color:#616161;
    font-weight:500;
    margin-bottom:1.5rem;
    text-shadow:0 1px 3px rgba(0,0,0,.2);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/*  FORMA  --------------------------------------------------------------- */
form{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1rem;
    width:100%;
    max-width:420px;

    /* stakleni blur efekat */
    background:rgba(255,255,255,.2);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    padding:2.5rem 2rem;
    border-radius:25px;
    box-shadow:0 8px 24px rgba(0,0,0,.15);
}

/* LABEL I TEKST OKO POLJA ----------------------------------------------- */
form label,
.field-label{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:.35rem;
    font-size:.9rem;
    color:#444;
}

.required-note{
    font-size:.8rem;
    color:#555;
    text-align:center;
    margin-bottom:.5rem;
}

.required-star{
    color:#e53935;
    font-weight:500;
}

/*  INPUT POLJA  --------------------------------------------------------- */
input {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-size: .95rem;
    background: #fdfdfd;
    outline: none;
    transition: box-shadow .2s, border-color .2s, background .2s;
    border: 1px solid #e0e0e0;
}

input:focus{
    box-shadow:0 0 0 3px rgba(105,160,106,.3);
    border-color:#69A06A;
    background:#ffffff;
}

/* Password wrapper + oko ikonica ---------------------------------------- */
.password-wrapper{
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

.password-wrapper input{
    width:100%;
    padding-right:3rem; /* prostor za ikonu */
}

.toggle-password{
    position:absolute;
    right:.75rem;
    top:50%;
    transform:translateY(-50%);
    border:none;
    cursor:pointer;
    font-size:1.1rem;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:.25rem;
    border-radius:50%;
    transition:background .2s, transform .1s;
    width: 10%;
    min-height:1.8rem;
}

.toggle-password:hover{
    background:#69A06A;
    transform:translateY(-50%) scale(1.04);
}

.toggle-password:active{
    transform:translateY(-50%) scale(.96);
}

/* Hint ispod polja ------------------------------------------------------ */
.field-hint{
    font-size:.75rem;
    color:#777;
    margin-left:.2rem;
}

/* Error poruke ---------------------------------------------------------- */
.field-error{
    font-size:.8rem;
    color:#e53935;
    margin-top:.25rem;
    text-align:left;
}

.input-error{
    border-color:#e53935 !important;
    box-shadow:0 0 0 2px rgba(229,57,53,.25) !important;
}

/*  DUGME  --------------------------------------------------------------- */
button{
    cursor:pointer;
    width:100%;
    padding:.85rem 1.2rem;
    border:none;
    border-radius:25px;
    font-size:1rem;
    font-weight:400;
    color:#fff;
    background:#69A06A;
    transition:background .25s, transform .15s, box-shadow .15s;
}

button:hover{
    background:#30af67;
    box-shadow:0 6px 15px rgba(0,0,0,.18);
}

button:active{
    transform:scale(.97);
    box-shadow:0 3px 10px rgba(0,0,0,.18);
}

/* da dugme submit bude malo odvojeno od ostatka */
form button[type="submit"]{
    margin-top:.5rem;
}

/*  RESPONSIVE  ---------------------------------------------------------- */
@media (max-width:768px){

    body{
        padding:0;
    }

    form{
        max-width:95%;
        padding:2rem 1.5rem;
        border-radius:20px;
    }

    form label{
        width:95%;
    }

    .password-wrapper{
        width:100%;
        margin-inline:auto;
    }
}

@media (max-width:480px){
    form{
        gap:.85rem;
    }

    h2{
        font-size:1.15rem;
        text-align:center;
    }

    .field-label{
        font-size:.85rem;
    }

    input{
        padding:.85rem 1rem;
        font-size:.9rem;
    }

    .toggle-password{
        right:.5rem;
    }
}



/* ===== Airbnb-like Google + separator + IG notice ===== */

.hv-google-wrap{
  display:flex;
  justify-content:center;
  margin: 14px 0 8px;
}

.hv-google-wrap > div{
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
}

.hv-sep{
  width: 100%;
  display:flex;
  align-items:center;
  gap:12px;
  margin: 10px 0 14px;
  font-size: 13px;
  color: rgba(0,0,0,.60);
  justify-content: center;
}

.hv-sep::before,
.hv-sep::after{
  content:"";
  height:1px;
  flex:1;
  background: rgba(255,255,255,.55);
}

/* ===== Instagram/FB webview notice (modern, Airbnb-ish) ===== */
.hv-ig-card{
  width: 100%;
  margin: 14px 0 8px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.88));
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
  text-align: left;
  display:none;
  backdrop-filter: blur(10px);
}

.hv-ig-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom: 10px;
}

.hv-ig-ico{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.06);
  flex: 0 0 40px;
}

.hv-ig-title{
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.hv-ig-text{
  font-size: 13px;
  color: rgba(0,0,0,.72);
  line-height: 1.35;
  margin: 0;
}

.hv-ig-steps{
  margin: 10px 0 12px;
  padding-left: 18px;
  color: rgba(0,0,0,.72);
  font-size: 13px;
  line-height: 1.35;
}

.hv-ig-steps li{ margin: 6px 0; }

.hv-ig-actions{
  display:flex;
  flex-direction: column;
  gap:10px;
}

.hv-ig-btn{
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  background: #111;
  color: #fff;
}

.hv-ig-btn:active{ transform: translateY(1px); }

.hv-ig-btn--ghost{
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.12);
}

.hv-ig-note{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0,0,0,.55);
}