* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #f2f5fb; font-family: system-ui, sans-serif; color: #172033; }
.card { width: min(100%, 390px); background: #fff; padding: 32px; border-radius: 16px; box-shadow: 0 12px 40px #1c31521c; }
h1 { margin: 0; font-size: 27px; }
p { color: #5d697b; }
form { display: grid; gap: 10px; margin-top: 22px; }
label { font-size: 14px; font-weight: 600; }
input { width: 100%; border: 1px solid #cbd5e1; padding: 12px; border-radius: 8px; font: inherit; margin-bottom: 8px; }
input:focus { outline: 2px solid #477cf0; border-color: transparent; }
button { cursor: pointer; background: #285bd3; border: none; color: white; font: inherit; font-weight: 600; border-radius: 8px; padding: 13px; }
button:hover { background: #1e48b0; }
#message { min-height: 22px; font-weight: 600; }
small { color: #687589; }

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f0f2f5;
  color: #1c1e21;
  min-height: 100vh;
}

.container {
  max-width: 1050px;
  min-height: 90vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 30px 20px;
}

.intro {
  flex: 1;
  margin-top: -50px;
}

.intro h1 {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #1877f2;
  margin-bottom: 15px;
}

.intro p {
  font-size: 27px;
  line-height: 1.25;
  max-width: 500px;
}

.login-section {
  width: 396px;
  max-width: 100%;
  text-align: center;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 9px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .1),
    0 8px 18px rgba(0, 0, 0, .08);
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card input {
  width: 100%;
  height: 52px;
  padding: 14px 16px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 17px;
  outline: none;
}

.card input:focus {
  border-color: #1877f2;
  box-shadow: 0 0 0 2px #e7f3ff;
}

.login-btn {
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 6px;
  height: 48px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

.login-btn:hover {
  background: #166fe5;
}

.forgot {
  display: block;
  color: #1877f2;
  font-size: 14px;
  text-decoration: none;
  margin: 17px 0 20px;
}

.forgot:hover {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #dadde1;
  margin-bottom: 24px;
}

.create-btn {
  display: inline-block;
  padding: 15px 18px;
  margin-bottom: 10px;
  background: #42b72a;
  color: white;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}

.create-btn:hover {
  background: #36a420;
}

.footer-text {
  margin-top: 28px;
  font-size: 14px;
}

#message {
  font-size: 14px;
  margin-top: 10px;
}

#message:empty {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .container {
    flex-direction: column;
    justify-content: center;
    gap: 30px;
  }

  .intro {
    text-align: center;
    margin-top: 0;
  }

  .intro h1 {
    font-size: 48px;
  }

  .intro p {
    font-size: 20px;
  }

  .login-section {
    width: 396px;
  }
}
