/* Layout, spacing and structural rules */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-form {
  width: min(100%, 380px);
  border-radius: 20px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.login-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 14px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.home-actions {
  width: 100%;
}

.button-row a,
.login-form button {
  width: 100%;
}

.login-form button {
  border: none;
  border-radius: 14px;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  min-height: 52px;
}

@media (max-width: 420px) {
  .login-form { padding: 1.5rem; }
}

.page-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.home-panel {
  width: min(100%, 500px);
  max-width: 620px;
  padding: 2rem;
  border-radius: 22px;
  display: grid;
  gap: 1rem;
}

.ghost-button { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 1.1rem; border-radius: 14px; text-decoration: none; }
