@charset "UTF-8";

/* ====== Base ====== */
:root{
  --card-bg: rgba(255,255,255,.50);
  --card-border: rgba(255,255,255,.55);
  --text: #0b1b2a;
  --muted: rgba(11, 27, 42, .62);
  --shadow: 0 20px 60px rgba(2, 18, 38, .22);
  --ring: 0 0 0 4px rgba(13,110,253,.18);
}


html, body { height: 100%; }
body{
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* Bạn đang set background trong <style> của login.php rồi,
   CSS này chỉ thêm overlay để "hơi trong mờ nhẹ" */
.bg-overlay{
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(900px 600px at 80% 20%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.28));

  pointer-events: none;
  z-index: 0;
}

/* noise nhẹ cho “pro” hơn */
.bg-noise{
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}

.auth-wrap{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 14px;
}

/* ====== Card ====== */
.auth-card{
  width: min(450px, 94vw);
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 28px 26px 18px;
  position: relative;
  animation: showIn .55s cubic-bezier(.2,.8,.2,1);
}

@keyframes showIn{
  from{ opacity:0; transform: translateY(18px) scale(.98); }
  to{ opacity:1; transform: none; }
}

/* viền sáng góc */
.auth-card:before{
  content:"";
  position:absolute; inset:0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(120deg,
    rgba(255,255,255,.85),
    rgba(255,255,255,.25),
    rgba(255,255,255,.55)
  );

  /* Standard (Firefox + spec) */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;

  /* WebKit (Chrome/Safari) */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  pointer-events:none;
}


.brand{
  display:flex;
  align-items:center;
  gap: 14px;
}

.brand-logo{
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  margin: 0 auto;
}

.brand-logo img{
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

.brand-title{
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.02rem;
  line-height: 1.25;
  color: rgba(21, 24, 133, 0.92); 
  text-transform: uppercase;
}

.brand-sub{
  margin-top: 2px;
  font-size: .95rem;
  color: rgba(27, 24, 124, 0.68); 
}

.divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  margin: 16px 0 14px;
}

.auth-title{
  margin: 0;
  font-weight: 800;
  font-size: 1.35rem;
  color: rgba(109, 10, 10, 0.92); 
}

.auth-desc{
  margin: 6px 0 14px;
  font-size: .96rem;
  color: rgba(117, 117, 32, 0.62);
}

/* ====== Form ====== */
.auth-form{ margin-top: 6px; }

.field{ display:block; margin-bottom: 12px; }

.field-label{
  display:block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .98rem;
  color: rgba(0, 45, 86, 0.78); 
}

.field-control{
  position: relative;
  display:flex;
  align-items:center;
}

.field-icon{
  position:absolute;
  left: 12px;
  opacity: .75;
  transform: translateY(-1px);
}

.auth-card .form-control{
  height: 46px;
  border-radius: 14px;
  padding-left: 42px;
  padding-right: 44px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(11,27,42,.10);
  color: rgba(11,27,42,.88);
  box-shadow: none;
}

.auth-card .form-control::placeholder{
  color: rgba(11,27,42,.45);
}


.auth-card .form-control:focus{
  border-color: rgba(13,110,253,.55);
  box-shadow: var(--ring);
  background: rgba(255,255,255,.22);
  color: rgba(255,255,255,.96);
}

.toggle-pass{
  position:absolute;
  right: 10px;
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: rgba(11,27,42,.70);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.toggle-pass:hover{
  background: rgba(11,27,42,.06); 
  transform: translateY(-1px);
}

/* Button */
.btn-login{
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: .6px;
  margin-top: 6px;
  box-shadow: 0 14px 30px rgba(13,110,253,.28);
}
.btn-login:active{ transform: translateY(1px); }

/* Footer */
.auth-footer{
  margin-top: 14px;
  padding-top: 12px;
  display:flex;
  justify-content:center;
  gap: 10px;
  color: rgba(255,255,255,.78);
  font-size: .9rem;
}

.auth-footer .dot{ opacity: .7; }
.auth-footer .muted{ opacity: .85; }

/* Bootstrap alert nhìn hợp nền tối */
.alert{
  border-radius: 14px;
}

/* ====== Mobile ====== */
@media (max-width: 520px){
  .auth-card{ padding: 22px 18px 14px; border-radius: 18px; }
  .auth-card:before{ border-radius: 18px; }
  .brand-title{ font-size: .98rem; }
  .auth-title{ font-size: 1.22rem; }
  .brand-logo{ width: 56px; height: 56px; border-radius: 16px; }
  .brand-logo img{ width: 42px; height: 42px; }
}

.auth-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.brand-text{
  text-align: center;
}
