/* ========== PRELOADER ========== */
#preloader{
  position:fixed;
  inset:0;
  background:#f5e2a6;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2rem;
  z-index:9999;
  overflow:hidden;
}
.bouquet{
  width:120px;
  animation:spin360 1.5s linear infinite;
  pointer-events:none;
  user-select:none;
}
@keyframes spin360{
  from{ transform:rotate(0deg); }
  to{   transform:rotate(360deg); }
}
.loader{
  --DELAY:40ms;
  --DUR:1s;
  display:flex;
  gap:.3rem;
  overflow:visible;
  padding:0 .6rem;
  font-family:"Great Vibes", cursive;
  font-size:4.2rem;
  line-height:1.25;
  color:#fff;
  text-shadow:0 0 6px rgba(255,255,255,.25);
  -webkit-text-stroke:0;
  min-height:6rem;
}
.loader span{
  display:inline-block;
  transform:translateY(5rem);
  animation:hideAndSeek var(--DUR) cubic-bezier(0.86,0,0.07,1) infinite alternate;
  animation-delay:calc(var(--i) * var(--DELAY));
}
@keyframes hideAndSeek{
  0%{ transform:translateY(4rem); }
  100%{ transform:translateY(0); }
}
body.loaded #preloader{
  opacity:0;
  visibility:hidden;
  transition:opacity .6s ease, visibility 0s .6s;
}

/* ========== BASE ========== */
:root{
  --bg: #f6efe7;
  --accent: #b56549;
  --accent-dark:#8d4a34;
  --text-dark:#403534;
  --cream:#fff8f1;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  background:var(--bg);           /* fundo liso */
  font-family:"Montserrat", sans-serif;
  color:var(--text-dark);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
button,input{
  font-family:inherit;
  font-size:1rem;
}

/* ========== CARD/HERO ========== */
.wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.5rem;
  position:relative;
}

.hero{
  width:100%;
  max-width:1080px;
  background:var(--cream);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns: 1fr 1fr;
  position:relative;
}

/* IMAGEM */
.hero__image{
  position:relative;
  overflow:hidden;
  min-height:420px;
}
.hero__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  border-top-left-radius:22px;
  border-bottom-left-radius:22px;
}

/* CONTEÚDO */
.hero__content{
  padding:3rem 2.5rem 3.5rem;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.subtitle{
  font-family:"Montserrat", sans-serif;
  font-size:.9rem;
  letter-spacing:.2rem;
  text-transform:uppercase;
  color:var(--accent-dark);
  margin-bottom:.8rem;
}

.title{
  font-family:"Great Vibes", cursive;
  font-size:3.8rem;
  font-weight:400;
  color:var(--accent);
  line-height:1;
  margin-bottom:1.6rem;
}

.intro{
  font-size:.95rem;
  line-height:1.6;
  margin-bottom:2rem;
  color:var(--text-dark);
  max-width:420px;
}

/* FORM */
.login-form{
  display:flex;
  flex-direction:column;
  gap:1rem;
  max-width:320px;
  margin:2rem auto 0;
}
.field{
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.field label{
  font-size:.85rem;
  color:var(--accent-dark);
  font-weight:500;
}
.field input{
  border:1.5px solid #e3d4c5;
  background:#fff;
  padding:.7rem .9rem;
  border-radius:8px;
  transition:border .2s;
}
.field input:focus{
  outline:none;
  border-color:var(--accent);
}

.btn{
  border:none;
  background:var(--accent);
  color:#fff;
  padding:.9rem 1.2rem;
  border-radius:22px;
  cursor:pointer;
  font-weight:500;
  transition:background .2s, transform .15s;
  margin-top:.5rem;
}
.btn:hover{
  background:var(--accent-dark);
}
.btn:active{
  transform:scale(.98);
}

/* MOBILE */
@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
  }
  .hero__image{
    height:clamp(180px,45vh,260px);
    min-height:unset;
  }
  .hero__image img{
    height:100%;
    object-fit:cover;
    object-position:center 20%;
    border-radius:22px 22px 0 0;
  }
}
