:root{
  --brand: #0d6efd;
  --card-max-width: 420px;
  --card-padding: 1.25rem;
  --overlay-color: rgba(0,0,0,0.35);
}

/* Global font */
*{ font-family: 'Kanit', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* Apply background to body for site-wide hero effect */
body {
  min-height: 100vh;
  margin: 0;
  background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('/assets/images/login-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container that centers the card */
.login-container{
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

/* Login card styling */
.login-card{
  width: 100%;
  max-width: var(--card-max-width);
  padding: var(--card-padding);
  border-radius: 12px;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Small screens */
@media (max-width: 420px){
  .login-card{
    margin: 0 0.5rem;
    padding: 1rem;
    border-radius: 10px;
  }
}

/* Focus and animation */
.login-card .form-control:focus{
  box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.15);
  border-color: var(--brand);
}

:focus{
  outline: 3px solid rgba(13,110,253,0.12);
  outline-offset: 2px;
}

@keyframes cardPop {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.login-card{ animation: cardPop .28s ease both; }
