* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  color: #24324a;
  background: #f5f7fb;
  line-height: 1.5;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(29, 39, 59, 0.08);
  padding: 24px;
}

@media (max-width: 470px) {
  .card {
    padding: 8px;
  }
}

.card h1,
.card h2,
.card h3 {
  margin: 0 0 12px;
}

.muted {
  color: #6b7a90;
}

.actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6deeb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #3f8cff;
  box-shadow: 0 0 0 3px rgba(63, 140, 255, 0.15);
}

.btn {
  appearance: none;
  border: none;
  background: #3f8cff;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease-in-out, transform 0.02s ease-in-out;
}

.btn:hover {
  background: #2f76e6;
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  background: #eef2f8;
  color: #334155;
}

.error {
  background: #fdecec;
  color: #a42828;
  border: 1px solid #f6c8c8;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0 0 12px;
}

.header-simple {
  padding: 16px;
  background: #ffffff;
  border-bottom: 1px solid #e5e9f2;
}

.header-simple .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
}

.link {
  color: #3f8cff;
  text-decoration: none;
}

.link:hover { text-decoration: underline; }


