/* Reset box-sizing */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f5f7;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Form container */
.form-container {
  width: 90%;
  max-width: 500px;
  background: #ffffff;
  padding: 36px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Logo */
.logo {
  width: 80px;
  margin-bottom: -5px;
}

/* Heading */
h2 {
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

/* Form layout */
form {
  display: flex;
  flex-direction: column;
}

/* Labels */
label {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  text-align: left;
}

/* Inputs */
input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9fbff;
  transition: border-color 0.2s, background-color 0.2s;
}

/* Input focus state */
input:focus {
  outline: none;
  border-color: #3478f6;
  background: #ffffff;
}

/* Vertical spacing: label above input */
label + input {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Button */
button {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #3478f6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: #2a62cc;
}

button:active {
  transform: scale(0.98);
}

/* Paragraph / register link */
p {
  font-size: 14px;
  color: #555;
  margin-top: 24px;
}

p a {
  color: #3478f6;
  text-decoration: none;
  font-weight: 500;
}

p a:hover {
  text-decoration: underline;
}

/* ========== Responsive tweaks ========== */

/* Up to 480px wide: shrink heading, inputs, and form padding */
@media (max-width: 480px) {
  .form-container {
    padding: 28px 20px;
  }
  .logo {
    width: 70px;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  label {
    font-size: 13px;
  }
  input {
    padding: 10px 12px;
    font-size: 13px;
  }
  button {
    padding: 10px;
    font-size: 15px;
  }
  p {
    font-size: 13px;
    margin-top: 20px;
  }
}

/* Up to 360px wide: further reduce padding & font sizes */
@media (max-width: 360px) {
  .form-container {
    padding: 20px 16px;
  }
  .logo {
    width: 60px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  label {
    font-size: 12px;
  }
  input {
    padding: 8px 10px;
    font-size: 12px;
  }
  button {
    padding: 8px;
    font-size: 14px;
  }
  p {
    font-size: 12px;
    margin-top: 16px;
  }
}
