*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:"Segoe UI",system-ui,sans-serif;
}

/* ===== PAGE ANIMATION ===== */
.fade-page{
  animation:fadeIn .6s ease;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

/* ===== LAYOUT ===== */
.auth-layout{
  display:flex;
  min-height:100vh;
}

/* ===== LEFT ===== */
.auth-left{
  flex:1;
  background:#ffffff;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:40px 24px;
}

/* card always center */
.auth-card{
  margin:auto 0;
}

/* ===== CARD ===== */
.auth-card{
  width:100%;
  max-width:420px;
  background:#ffffff;
  border-radius:18px;
  padding:36px 32px;
  box-shadow:0 30px 70px rgba(0,0,0,.18);
  margin-bottom:30px;
}

.slide-up{
  animation:slideUp .6s ease;
}

@keyframes slideUp{
  from{
    opacity:0;
    transform:translateY(25px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

.hidden{display:none}

/* ===== TEXT ===== */
.app-title{
  font-size:28px;
  margin:0 0 6px;
}

.subtitle{
  font-size:15px;
  color:#64748b;
  margin-bottom:26px;
}

/* ===== INPUT ===== */
.auth-card input{
  width:100%;
  padding:14px 16px;
  margin-bottom:16px;
  border-radius:12px;
  border:1px solid #cbd5f5;
  font-size:16px;
}

.auth-card input:focus{
  outline:none;
  border-color:#14532d;
}

/* PASSWORD */
.password-wrap{position:relative}
.password-wrap input{padding-right:42px}
/* ✅ Register password strength থাকলেও eye যেন ইনপুটের সেন্টারে থাকে */
.password-wrap{padding-bottom:20px;} /* bar+text এর জন্য জায়গা */
.password-wrap .toggle-eye{top:22px;} /* ইনপুটের মাঝ বরাবর */


/* ===== Password Strength ===== */
.password-strength{
  width:100%;
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:6px;
  display:none;
}

.strength-bar{
  height:100%;
  width:0%;
  background:#dc2626;
  transition:width .25s ease, background .25s ease;
}

.strength-text{
  font-size:13px;
  margin-bottom:12px;
  color:#64748b;
}


.toggle-eye{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  opacity:.6;
}

/* ===== Remember Me ===== */

.remember-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
  font-size: 14px;
}

.remember-row input{
  margin-right:8px;
  accent-color:#4f46e5;
}

.remember-left{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap; /* 🔥 line break বন্ধ */
}

.remember-left input{
  cursor: pointer;
  margin: 0;
}

.forgot-password{
  color:#dc2626;
  cursor: pointer;
  font-size: 13px;
}

.forgot-password:hover{
  text-decoration: underline;
}

/* ===== BUTTONS ===== */
.auth-card button{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}

#loginBtn,
#registerBtn{
  background:#14532d;
  color:#fff;
  margin-bottom:14px;
}

.google-btn{
  background:#ffffff;
  border:1px solid #d1d5db;
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.google-btn span{
  background:#ea4335;
  color:#fff;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:bold;
}

/* ===== MESSAGE ===== */
.auth-msg{
  display:none;
  padding:10px;
  border-radius:10px;
  font-size:14px;
  margin-bottom:14px;
}

.auth-msg.error{
  background:#fee2e2;
  color:#991b1b;
  text-align: center;
}

.auth-msg.success{
  background:#dcfce7;
  color:#166534;
  text-align: center;
}


/* ===== SWITCH ===== */
.switch{
  margin-top:18px;
  font-size:15px;
}

.switch span{
  color:#14532d;
  font-weight:600;
  cursor:pointer;
}

/* ===== FOOTER ===== */
.auth-footer{
  margin-top:auto;
  font-size:14px;
  color:#64748b;
}

.auth-footer strong{
  color:#14532d;
}

/* ===== RIGHT ===== */
.auth-right{
  flex:1;
  background:linear-gradient(135deg,#064e3b,#022c22);
  color:#ecfdf5;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.promo-box{
  max-width:420px;
}

.promo-box h2{
  font-size:34px;
  margin-bottom:14px;
}

.feature{
  background:rgba(255,255,255,.12);
  padding:14px 18px;
  border-radius:12px;
  margin-bottom:14px;
}

/* ===== Side Entrance Animation ===== */
.auth-left{
  animation:leftIn .6s ease forwards;
}

.auth-right{
  animation:rightIn .6s ease forwards;
}

/* ===== RESET MODAL ===== */
.reset-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.reset-box{
  background:#fff;
  padding:28px;
  border-radius:16px;
  width:100%;
  max-width:380px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.3);
}

.reset-box h3{
  margin:0 0 10px;
}

.reset-box input{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #c7d2fe;
  margin:12px 0;
}

.reset-box button{
  width:100%;
  padding:14px;
  background:#4f46e5;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:16px;
  cursor:pointer;
}

.close-reset{
  display:inline-block;
  margin-top:14px;
  color:#64748b;
  cursor:pointer;
}

.hidden{
  display:none;
}

@keyframes leftIn{
  from{
    opacity:0;
    transform:translateX(-40px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

@keyframes rightIn{
  from{
    opacity:0;
    transform:translateX(40px);
  }
  to{
    opacity:1;
    transform:none;
  }
}


/* ===== MOBILE ===== */
@media(max-width:900px){
  .auth-right{display:none}
  .auth-left{padding:18px 14px}
  .auth-card{padding:28px 22px; margin-bottom:18px;}
}
