*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #FAFAFA;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.login-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.login-sub {
  font-size: 13px;
  color: #6b6b6b;
  font-weight: 300;
  margin-bottom: 2rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #6b6b6b;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: #FAFAFA;
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus { border-color: rgba(0,0,0,0.4); }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #6b6b6b;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 17px;
  transition: color 0.15s;
}
.pw-toggle:hover { color: #1a1a1a; }

.btn-login {
  width: 100%;
  height: 42px;
  margin-top: 1.5rem;
  background: #3D5EAC;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.15s, transform 0.1s;
}
.btn-login:hover { opacity: 0.85; }
.btn-login:active { transform: scale(0.98); }

.msg {
  font-size: 13px;
  margin-top: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
.msg.error {
  background: #FCEBEB;
  color: #A32D2D;
  border: 0.5px solid #F09595;
  display: block;
}
.msg.success {
  background: #EAF3DE;
  color: #3B6D11;
  border: 0.5px solid #97C459;
  display: block;
}

.divider {
  height: 0.5px;
  background: rgba(0,0,0,0.12);
  margin: 1.75rem 0;
}

.forgot {
  text-align: center;
  font-size: 13px;
  color: #6b6b6b;
}
.forgot a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}
.forgot a:hover { text-decoration: underline; }
