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

body {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 24px 40px;
}

header .logo {
    text-decoration: none;
    color: #000;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 40px 48px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 400;
  color: #111;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  width: 100%;
  max-width: 820px;
}

.card {
  background: #d9d9d9;
  border-radius: 20px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 820px;
  width: 100%;
}

.row {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 560px;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

input {
  width: 100%;
  padding: 14px 22px;
  border-radius: 50px;
  border: none;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  color: #333;
  outline: none;
  transition: box-shadow 0.2s;
}

input::placeholder {
  color: #999;
}

input:focus {
  box-shadow: 0 0 0 2px #111;
}

.input-full {
  width: 100%;
  max-width: 560px;
}

.erro {
  color: #c0392b;
  font-size: 0.85rem;
  text-align: center;
  background: #fde8e8;
  border-radius: 8px;
  padding: 8px 16px;
  width: 100%;
  max-width: 560px;
}

.btn {
  margin-top: 8px;
  width: 100%;
  max-width: 560px;
  padding: 15px;
  border-radius: 50px;
  border: none;
  background: #111;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover  { background: #333; }
.btn:active { transform: scale(0.98); }

.login-link {
  margin-top: 4px;
  font-size: 0.88rem;
  color: #555;
}

.login-link a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}