/*
  login.css
  Page-specific styling for login.php (kept separate from global styles).
  Designed to match the provided reference layout: hero illustration on the left, form panel on the right.
*/

:root{
  --auth-bg: #eef1f6;
  --auth-card: #ffffff;
  --auth-text: #1d2433;
  --auth-muted: #7a859a;
  --auth-border: rgba(30, 41, 59, 0.10);
  --auth-shadow: 0 18px 60px rgba(16, 24, 40, 0.12);
  --auth-blue: #0b4ea2;
  --auth-blue-dark: #093f84;
  --auth-input: #f2f4f8;
}

/* Make this file robust even if the project already has a CSS reset */
.auth{
  min-height: calc(100vh - 1px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.auth__card{
  width: min(1120px, 100%);
  min-height: 560px;
  background: var(--auth-card);
  border-radius: 16px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

/* Left illustration area */
.auth__hero{
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,1));
}

.auth__heroImg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* In case the hero image path doesn't exist, we still keep a clean geometric look */
.auth__heroFallback{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 80%, rgba(11,78,162,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,1));
}

/* Right panel */
.auth__panel{
  padding: 56px 56px;
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth__title{
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth__subtitle{
  margin: 0 0 34px;
  color: var(--auth-muted);
  line-height: 1.45;
  font-size: 14px;
}

.auth__alert{
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}

.auth__form{
  display: grid;
  gap: 12px;
}

.auth__label{
  font-size: 12px;
  color: var(--auth-muted);
  margin-top: 6px;
}

.auth__input{
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--auth-border);
  background: var(--auth-input);
  padding: 0 14px;
  outline: none;
  font-size: 14px;
  color: var(--auth-text);
}

.auth__input:focus{
  border-color: rgba(11, 78, 162, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 78, 162, 0.12);
  background: #ffffff;
}

.auth__check{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--auth-muted);
  user-select: none;
}

.auth__checkbox{
  width: 16px;
  height: 16px;
  accent-color: var(--auth-blue);
}

.auth__btn{
  margin-top: 6px;
  height: 46px;
  border: none;
  border-radius: 2px; /* the reference button is close to squared */
  background: var(--auth-blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease;
}

.auth__btn:hover{ background: var(--auth-blue-dark); }
.auth__btn:active{ transform: translateY(1px); }

.auth__footer{
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--auth-muted);
}

.auth__link{
  color: var(--auth-blue);
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive */
@media (max-width: 920px){
  .auth__card{ grid-template-columns: 1fr; }
  .auth__hero{ min-height: 260px; }
  .auth__panel{ padding: 36px 22px; }
  .auth__title{ font-size: 34px; }
}
