/* ============================================================
   CPAG auth pages (login / forgot / reset / change password)
   v2 redesign — modern glass card over patrol imagery
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

body{
  min-height: 100vh;
  margin: 0;
  background: url("../images/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
body::before{
  content: "";
  position: fixed;
  top:0; right:0; bottom:0; left:0;
  background: linear-gradient(160deg, rgba(9,20,40,.88), rgba(13,31,60,.72));
  backdrop-filter: blur(5px);
  z-index: 0;
}

.login-wrapper{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.login-container{
  width: 100%;
  max-width: 420px;
}

/* brand block above the card */
.auth-brand{
  text-align: center;
  margin-bottom: 22px;
  color: #fff;
}
.auth-brand img{
  width: 84px !important;
  height: 84px !important;
  max-width: 84px;
  max-height: 84px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  margin-bottom: 12px;
}
/* safety net: any stray image inside the auth wrapper stays contained */
.login-wrapper img{
  max-width: 120px;
  max-height: 120px;
}
.auth-brand h1{
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  margin: 0;
}
.auth-brand p{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e8a824;
  margin: 6px 0 0;
  font-weight: 600;
}

.card{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  overflow: hidden;
}
.card-header{
  background: linear-gradient(135deg, #0d1f3c, #1a56c4);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
  padding: 16px;
  border: none;
}
.card-body{ padding: 26px 24px; }

.form-control{
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 11px;
  border-color: #dfe5ee;
}
.form-control:focus{
  border-color: #1a56c4;
  box-shadow: 0 0 0 .2rem rgba(26,86,196,.14);
}

.btn{
  border-radius: 11px;
  font-weight: 600;
  padding: 11px 16px;
}
.btn-primary{
  background: #1a56c4;
  border-color: #1a56c4;
}
.btn-primary:hover{ background: #12419a; border-color: #12419a; }
.btn-secondary{ background: #64748b; border-color: #64748b; }

.alert{ border-radius: 11px; border: none; }

.default-pass-note{
  background: #fdf6e5;
  border: 1px dashed #e8a824;
  color: #7a5a10;
  font-size: 12.5px;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 600;
}

a{ color: #1a56c4; text-decoration: none; font-weight: 500; }
a:hover{ color: #12419a; }

@media (max-width: 576px){
  .login-wrapper{ padding: 10px; align-items: flex-start; padding-top: 24px; }
  .auth-brand{ margin-bottom: 14px; }
  .auth-brand img{ width: 56px !important; height: 56px !important; max-width: 56px; max-height: 56px; margin-bottom: 8px; }
  .auth-brand h1{ font-size: 16px; }
  .auth-brand p{ font-size: 10.5px; margin-top: 4px; }
  .card-header{ font-size: 14px; padding: 12px; }
  .card-body{ padding: 18px 16px; }
  .form-label{ font-size: 13px; margin-bottom: 4px; }
  .form-control{ font-size: 16px; padding: 10px 12px; } /* iOS zoom fix */
  .mb-3{ margin-bottom: .75rem !important; }
  .btn{ padding: 9px 14px; font-size: 14px; }
  .default-pass-note{ font-size: 11px; padding: 7px 10px; margin-bottom: 10px; }
  .form-check-label{ font-size: 13px; }
}
@media (max-width: 380px){
  .auth-brand img{ width: 48px !important; height: 48px !important; }
  .auth-brand h1{ font-size: 14.5px; }
  .card-body{ padding: 14px 12px; }
}
