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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #e3e8ef;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #00132a;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #c1ccdb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 35, 71, 0.12);
}

.brand {
  background: #002347;
  padding: 28px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.brand-logo {
  width: 120px;
  object-fit: contain;
  padding: 5px;
  flex-grow: 0;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10%;
}

.brand-text {
  text-align: left;
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.brand-text p {
  font-size: 0.78rem;
  color: #9eb0c7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-body {
  padding: 28px 28px 24px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #001b38;
}

.field input {
  border: 1px solid #c1ccdb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.93rem;
  background: #f4f6f8;
  color: #00132a;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field input::placeholder { color: #9eb0c7; }

.field input:focus {
  outline: none;
  border-color: #002347;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 35, 71, 0.10);
}

.login-form button {
  margin-top: 4px;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  background: #002347;
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.login-form button:hover { background: #001b38; }

.error {
  margin-top: 14px;
  background: #fdf0f0;
  border: 1px solid #f0a8a8;
  color: #8b1a1a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.875rem;
}