:root {
  --primary:    #164b44;
  --primary-lt: #1e6b61;
  --accent:     #e7ad25;
  --bg:         #f2f5f4;
  --border:     #ccd8d6;
  --text:       #1a2e2c;
  --muted:      #6b8a86;
  --danger:     #e74c3c;
  --success:    #27ae60;
}

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

body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.login-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(22,75,68,.12);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}

.logo {
  text-align: center;
  margin-bottom: 2rem;
}
.logo img {
  height: 48px;
  display: block;
  margin: 0 auto .6rem;
}
.logo p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .35rem;
}
.form-group input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-login {
  width: 100%;
  padding: .75rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .15s;
}
.btn-login:hover { background: var(--primary-lt); }

.link-subtle {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
}
.link-subtle:hover { color: var(--primary); text-decoration: underline; }

.alert-error {
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  color: var(--danger);
  border-radius: 6px;
  padding: .7rem .9rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-success {
  background: #edfaf2;
  border: 1px solid #b2e8ca;
  color: var(--success);
  border-radius: 6px;
  padding: .7rem .9rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}

@media (max-width: 440px) {
  .login-wrap { padding: 2rem 1.2rem; margin: 1rem; }
}
