body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-container {
  width: 100%;
  max-width: 440px;
  padding: 3rem;
  text-align: center;
}
.brand {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #059669, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.footer-link {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f0f0f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #4caf50;
}

.logo {
  text-align: center;
  margin-bottom: 28px;
}
.logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}
.logo span {
  color: #4caf50;
}
.logo p {
  color: #888;
  font-size: 13px;
  margin-top: 4px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: #4caf50;
  background: #fff;
}

.field-error {
  color: #e53935;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.remember-row input[type="checkbox"] {
  accent-color: #4caf50;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.remember-row label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
}

.btn {
  width: 100%;
  padding: 11px;
  background: #4caf50;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.btn:hover {
  background: #43a047;
}
.btn:disabled {
  background: #a5d6a7;
  cursor: not-allowed;
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.alert.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.alert.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.switch-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #777;
}
.switch-link a {
  color: #4caf50;
  font-weight: 600;
  text-decoration: none;
}
.switch-link a:hover {
  text-decoration: underline;
}
