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

:root {
  --teal: #0A8A7E;
  --teal-dark: #077068;
  --bg: #F8FAFB;
  --card: #ffffff;
  --text: #3E4044;
  --muted: #8A8F98;
  --border: #E4E8EF;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --radius: 14px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.login-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
  box-shadow: 0 4px 24px rgba(37,99,202,0.09);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.login-logo img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.login-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 4px;
}

.login-sub {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

.error-msg {
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  display: none;
}

.error-msg.show {
  display: block;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
}

.field input::placeholder {
  color: var(--muted);
}

.btn-login {
  margin-top: 6px;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}

.btn-login:hover {
  background: var(--teal-dark);
}

.btn-login:active {
  transform: scale(0.98);
}

.login-footer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
