/* ===== Logo ===== */
.login-logo {
  width: 80px;
  height: auto;
  margin-bottom: 12px;
}

.login-logo {
  width: 100px;
}


/* ===== Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

/* ===== Background ===== */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Container ===== */
.login-container {
  width: 100%;
  padding: 20px;
}

/* ===== Card ===== */
.login-card {
  max-width: 380px;
  margin: auto;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* ===== Branding ===== */
.brand {
  font-size: 32px;
  font-weight: 700;
  color: #1e40af;
}

.subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

/* ===== Inputs ===== */
.input-group {
  text-align: left;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: border 0.3s, box-shadow 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* ===== Login Button ===== */
#loginBtn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s ease;
}

#loginBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

#loginBtn:active {
  transform: scale(0.98);
}

/* ===== Error ===== */
.error {
  color: #e11d48;
  font-size: 13px;
  margin-top: 10px;
  min-height: 16px;
}

/* ===== Footer ===== */
.footer-text {
  margin-top: 25px;
  font-size: 12px;
  color: #888;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
}

/* BACKGROUND */

body{
margin:0;
font-family:'Poppins',sans-serif;
background:#f8fafc;
overflow:hidden;
}

.auth-bg{
position:fixed;
width:100%;
height:100%;
background:
radial-gradient(circle at 20% 30%, #6366f1 0%, transparent 30%),
radial-gradient(circle at 80% 70%, #8b5cf6 0%, transparent 30%);
opacity:0.2;
}

/* CENTER */

.auth-container{
height:100vh;
display:flex;
align-items:center;
justify-content:center;
}

/* CARD */

.auth-card{
width:360px;
padding:30px;
border-radius:16px;

background:rgba(255,255,255,0.7);
backdrop-filter:blur(12px);

box-shadow:0 20px 50px rgba(0,0,0,.15);
text-align:center;
}

.logo{
height:50px;
margin-bottom:10px;
}

.subtitle{
color:#64748b;
margin-bottom:20px;
}

/* TOGGLE */

.auth-toggle{
display:flex;
background:#e2e8f0;
border-radius:10px;
margin-bottom:20px;
overflow:hidden;
}

.toggle-btn{
flex:1;
padding:10px;
border:none;
background:none;
cursor:pointer;
font-weight:500;
}

.toggle-btn.active{
background:#2563eb;
color:#fff;
}

/* INPUT */

.input-box{
position:relative;
margin-bottom:20px;
}

.input-box input{
width:100%;
padding:12px;
border:1px solid #e2e8f0;
border-radius:8px;
outline:none;
}

.input-box label{
position:absolute;
top:50%;
left:12px;
transform:translateY(-50%);
color:#64748b;
transition:.2s;
background:#fff;
padding:0 5px;
}

.input-box input:focus + label,
.input-box input:valid + label{
top:-8px;
font-size:12px;
color:#2563eb;
}

/* BUTTON */

.auth-btn{
width:100%;
padding:12px;
border:none;
border-radius:10px;
background:linear-gradient(135deg,#2563eb,#4f46e5);
color:#fff;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.auth-btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* HIDE */

.hidden{
display:none;
}

.google-btn{
width:100%;
padding:10px;
border-radius:10px;
border:1px solid #e2e8f0;
background:#fff;
display:flex;
align-items:center;
justify-content:center;
gap:10px;
cursor:pointer;
transition:.2s;
}

.google-btn img{
height:18px;
}

.google-btn:hover{
background:#f1f5f9;
}

.divider{
margin:15px 0;
color:#64748b;
font-size:14px;
}

form{
transition:all .3s ease;
}

.hidden{
opacity:0;
transform:translateX(20px);
pointer-events:none;
position:absolute;
}

form:not(.hidden){
opacity:1;
transform:translateX(0);
}

.password-box{
position:relative;
}

.toggle-pass{
position:absolute;
right:10px;
top:50%;
transform:translateY(-50%);
cursor:pointer;
}

.forgot{
cursor:pointer;       /* 🔥 important */
color:#2563eb;
font-size:14px;
margin-top:8px;
display:inline-block;
}

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

.back-link{
cursor:pointer;
color:#2563eb;
font-size:14px;
margin-top:10px;
}

.back-link:hover{
text-decoration:underline;
}

.auth-card{
position:relative;
min-height:420px; /* 🔥 prevents layout jump */
}

form,
#forgotSection,
#resetSection,
#otpSection{
width:100%;
transition:.3s ease;
}

.hidden{
opacity:0;
transform:translateX(20px);
pointer-events:none;
position:absolute;
}

.otp-container{
display:flex;
justify-content:space-between;
gap:10px;
margin-bottom:15px;
}

.otp-box{
width:45px;
height:50px;
text-align:center;
font-size:20px;
border:1px solid #e2e8f0;
border-radius:10px;
outline:none;
transition:.2s;
}

.otp-box:focus{
border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,.2);
}

.hidden{
opacity:0;
transform:translateY(10px);
pointer-events:none;
position:absolute;
}

form, #forgotSection, #resetSection{
transition:all .3s ease;
}

.success-box{
text-align:center;
}

.checkmark{
font-size:40px;
color:#22c55e;
margin-bottom:10px;
}

/* INPUT FOCUS */
.input-box input:focus{
border-color:#2563eb;
box-shadow:0 0 0 2px rgba(37,99,235,.15);
}

/* BUTTON PRESS */
.auth-btn:active{
transform:scale(0.97);
}

/* GOOGLE BUTTON */
.google-btn{
transition:.2s;
}

.google-btn:hover{
transform:translateY(-2px);
box-shadow:0 5px 15px rgba(0,0,0,.1);
}

