*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  background: #f4f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.card {
  background: #fff;
  border: 1px solid #e0dfd8;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e6f1fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-wrap i {
  font-size: 22px;
  color: #185fa5;
}

h1 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a18;
}

.subtitle {
  font-size: 13px;
  color: #6b6b66;
  margin-top: 4px;
}

.field {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 13px;
  color: #6b6b66;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.input-wrap i.field-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #aaa;
  pointer-events: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 34px;
  border: 0.5px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a18;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

input:focus {
  border-color: #378add;
  box-shadow: 0 0 0 3px rgba(55, 138, 221, 0.15);
}

.toggle-pw {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  padding: 4px;
}

.toggle-pw i {
  font-size: 16px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b6b66;
  cursor: pointer;
}

.forgot {
  font-size: 13px;
  color: #185fa5;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background: #1a1a18;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s;
}

.btn-login:hover {
  opacity: 0.85;
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-new-account {
  background: #17a2b8;
}

.btn-new-account:hover {
  opacity: 0.85;
}

.register {
  text-align: center;
  font-size: 13px;
  color: #6b6b66;
  margin-top: 1.5rem;
}

.register a {
  color: #185fa5;
  text-decoration: none;
}

.register a:hover {
  text-decoration: underline;
}

.msg {
  display: none;
  margin-top: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.msg.error {
  background: #fcebeb;
  color: #a32d2d;
  border: 0.5px solid #f09595;
}

.msg.success {
  background: #eaf3de;
  color: #3b6d11;
  border: 0.5px solid #97c459;
}