body{
  display:flex;
  flex-direction:column;
}

.container{width:100%}

/* Login header is not sticky */
header{position:static}

main{
  flex:1;
  display:grid;
  place-items:center;
  padding:40px 0 60px;
}

.card{
  width:min(440px, 100%);
  background: white;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow:hidden;
  position:relative;
}
/* Removed complex before pseudo-element */

.card-inner{position:relative; padding:32px 24px}

h1{
  margin:2px 0 6px;
  font-size:24px;
  font-weight: 700;
  letter-spacing:-.4px;
  color: var(--text);
}
.sub{
  margin:0 0 24px;
  color:var(--text-muted);
  font-size:15px;
}

.notice{
  border:1px solid var(--brand-light);
  background: var(--brand-light);
  border-radius:var(--radius);
  padding:12px;
  color: var(--brand-dark);
  font-size:13px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:24px;
}
.notice .badge{
  width:24px;height:24px;border-radius:8px;
  display:grid; place-items:center;
  background: white;
  color: var(--brand);
  border:1px solid transparent;
  flex:0 0 auto;
}

form{display:flex; flex-direction:column; gap:16px}

input::placeholder{color: #9ca3af}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:2px;
}
.checkbox{
  display:flex;
  gap:8px;
  align-items:center;
  color: var(--text-muted);
  font-size:14px;
  cursor:pointer;
  user-select:none;
}
.checkbox input{
  width:16px;
  height:16px;
  margin:0;
}

.link{
  font-size:14px;
  color: var(--brand);
  text-decoration:none;
  font-weight: 500;
}
.link:hover{text-decoration:underline}

.actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:8px;
}
.actions .btn{width:100%; padding:12px 16px; border-radius:10px}

.divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 8px;
  color: var(--text-muted);
  font-size:12px;
}
.divider::before, .divider::after{
  content:"";
  height:1px;
  flex:1;
  background: var(--border);
}

.alt{
  display:flex;
  justify-content:center;
  gap:6px;
  font-size:14px;
  color: var(--text-muted);
  margin-top:12px;
}
.alt a { color: var(--brand); font-weight: 500; }

/* Login footer has border-top + different padding */
footer{
  padding:24px 0 40px;
  border-top:1px solid var(--border);
  color:var(--text-muted);
  font-size:13px;
  text-align: center;
}
.footer-row{
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
}