/* Global box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #f0f0f0;
  padding: 20px;
}

.container {
  background: #1e293b;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  overflow: hidden;
}

.header {
  background: linear-gradient(to right, #1BA0D7, #005073);
  color: white;
  padding: 18px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

.form-body {
  padding: 20px 40px;
  box-sizing: border-box;
}

h2 {
  font-size: 16px;
  margin-bottom: 12px;
  text-align: center;
  color: #e5e7eb;
}

input {
  width: 90%; /* reduced width */
  max-width: 100%;
  padding: 10px;
  margin: 8px auto;
  display: block;
  border-radius: 6px;
  border: 1px solid #334155;
  font-size: 14px;
  background: #0f172a;
  color: #f1f5f9;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
  color: #94a3b8;
}

input:focus {
  border-color: #1BA0D7;
  outline: none;
  box-shadow: 0 0 3px #1BA0D7AA;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 14px;
  border: none;
  border-radius: 6px;
  background: #1BA0D7;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #0091c9;
}

.footer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  padding: 12px;
  background: #111827;
  border-top: 1px solid #1f2937;
}

/* Responsive adjustments for smaller screens */

@media (max-width: 600px) {
  .container {
    max-width: 100%;
    border-radius: 6px;
    transform: scale(0.8);
    transform-origin: top center;
    margin-bottom: 40px;
  }

  .form-body {
    padding: 20px 20px;
  }

  input {
    width: 90%; /* consistent on mobile */
    max-width: 100%;
  }
}
