/* ========== Perusasetukset ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f4f6f8;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ========== Login-kontti ========== */
.login-container,
.container,
.wrapper,
form {
  width: 100%;
  max-width: 420px;
}

/* Jos sivulla ei ole wrapperia, form toimii korttina */
form {
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Otsikot */
h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

/* ========== Inputit ========== */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ========== Nappi ========== */
button,
input[type="submit"] {
  width: 100%;
  padding: 12px 14px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background: #1d4ed8;
}

button:active {
  transform: translateY(1px);
}

/* ========== Linkit ========== */
a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}

/* ========== Pienet tekstit ========== */
p {
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
  color: #6b7280;
}

/* ========== Mobiilioptimointi ========== */
@media (max-width: 480px) {
  form {
    padding: 22px;
    border-radius: 10px;
  }

  input, button {
    font-size: 16px;
    padding: 14px;
  }
}