* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #222 0, #050509 60%);
  color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.wrapper {
  width: 100%;
  max-width: 700px;
  padding: 2rem 1rem 3rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  color: #ccc;
}

.card {
  background: rgba(15, 15, 25, 0.96);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.06);
}

.field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  font-weight: 600;
}

input[type="password"],
input[type="file"],
input[type="number"],
select {
  background: #111320;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.5rem 0.75rem;
  color: #f5f5f5;
}

input[type="file"] {
  padding: 0.35rem 0.4rem;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ff9fd6;
  box-shadow: 0 0 0 1px rgba(255,159,214,0.5);
}

small {
  color: #aaa;
  font-size: 0.75rem;
}

.btn-primary {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, #ff9fd6, #ffc36b);
  color: #16151f;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.6);
}

.messages {
  margin-bottom: 1rem;
}

.msg {
  padding: 0.6rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.msg.success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.msg.error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.5);
}

footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}
