/* ====== VARIABLES ====== */
:root{
  --primary:#ff4b00;
  --dark:#111827;
  --white:#ffffff;
  --gray:#6b7280;
}

/* ====== RESET ====== */
*{margin:0;padding:0;box-sizing:border-box}

/* ====== BODY ====== */
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto;
  background:var(--dark);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

/* ====== CONTAINER ====== */
.login-container{
  width:100%;
  max-width:420px;
}

/* ====== CARD ====== */
.login-card{
  background:var(--white);
  border-radius:22px;
  padding:42px 30px;
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  position:relative;
}

/* ===== HEADER ===== */
.login-header{
  text-align:center;
  margin-bottom:32px;
}

.logo img{
  width:64px;
  margin-bottom:12px;
}

.login-header h1{
  color:var(--dark);
  font-size:1.9rem;
  font-weight:800;
}

.login-header p{
  color:var(--gray);
}

/* ===== INPUTS ===== */
.form-field{
  position:relative;
  margin-bottom:24px;
}

.form-field input{
  width:100%;
  border:none;
  border-bottom:2px solid #e5e7eb;
  padding:12px 0;
  font-size:16px;
  outline:none;
  transition:.3s;
}

.form-field label{
  position:absolute;
  top:12px;
  left:0;
  color:#9ca3af;
  transition:.3s;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown)+label{
  top:-8px;
  font-size:12px;
  color:var(--primary);
  font-weight:700;
}

.field-line{
  position:absolute;
  bottom:0;
  left:0;
  height:2px;
  width:0;
  background:var(--primary);
  transition:.3s;
}

.form-field input:focus ~ .field-line{
  width:100%;
}

/* ===== PASSWORD ICON ===== */
.password-reveal{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:none;
  cursor:pointer;
  color:#9ca3af;
}

.password-reveal:hover{
  color:var(--primary);
}

/* ===== CHECKBOX ===== */

.remember-checkbox{
  display:flex;
  align-items:center;
  font-size:14px;
  color:#374151;
  font-weight:600;
  margin-bottom:20px;
}

.remember-checkbox input{
  display:none;
}

/* caja */
.checkbox-custom{
  width:18px;
  height:18px;
  border:2px solid #d1d5db;
  margin-right:8px;
  border-radius:5px;
  position:relative;
  transition:.2s;
}

/* estado activo */
.remember-checkbox input:checked + .checkbox-custom{
  background:#ff4b00;
  border-color:#ff4b00;
}

/* palomita mejorada */
.remember-checkbox input:checked + .checkbox-custom::after{
  content:"";
  position:absolute;

  left:4px;
  top:2px;

  width:4px;
  height:8px;

  border:2px solid white;
  border-top:none;
  border-left:none;

  transform:rotate(45deg);
}

/* ===== BUTTON ===== */
.signin-button{
  width:100%;
  background:var(--primary);
  color:white;
  border:none;
  border-radius:14px;
  padding:15px;
  font-weight:800;
  cursor:pointer;
  transition:.25s;
}

.signin-button:hover{
  opacity:.9;
}

/* ===== ALERT ===== */
.alert{
  background:#fff1ec;
  color:#b91c1c;
  padding:10px;
  border-radius:8px;
  margin-bottom:16px;
}

/* =====================================
🔥 INSTALL APP REDISEÑO PRO
===================================== */

.install-app-box{
  position:fixed;
  top:-100px;
  left:50%;
  transform:translateX(-50%);
  width:90%;
  max-width:420px;

  background:#111827;
  color:white;
  border-radius:16px;
  padding:16px 18px;

  box-shadow:0 20px 50px rgba(0,0,0,.6);

  opacity:0;
  transition:all .4s ease;

  z-index:999;
}

.install-app-box.show{
  top:20px;
  opacity:1;
}

/* texto */
.install-app-text{
  font-size:13px;
  opacity:.8;
  text-align:center;
  margin-bottom:14px;
}

/* botón nuevo */
.install-app-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  background:#ff4b00;
  border:none;
  color:white;

  padding:12px 14px;
  border-radius:10px;

  font-weight:700;
  font-size:14px;

  cursor:pointer;
  transition:.2s;
}

/* hover */
.install-app-button:hover{
  opacity:.9;
  transform:scale(.98);
}

/* icono moderno */
.install-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  background:rgba(255,255,255,.15);

  display:flex;
  align-items:center;
  justify-content:center;
}

/* ===== RESPONSIVE ===== */
@media(max-width:480px){
  .login-card{
    padding:30px 20px;
  }
}