* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.card-form {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group-half {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-label {
  display: block;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.025em;
}

.input-wrapper {
  position: relative;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

.input-wrapper:hover {
  border-color: rgba(100, 116, 139, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.input-wrapper:focus-within {
  border-color: #3b82f6;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Element containers */
#card-number,
#card-date,
#card-code {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
}

button {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  margin: 0 auto;
  transition: background-color 0.2s ease;
  display: flex;
}

button:hover {
  background: #2563eb;
}

button:active {
  background: #1d4ed8;
}

@media (max-width: 480px) {
  .card-form {
    padding: 24px;
    margin: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 24px;
  }

  .form-group-half {
    flex: none;
  }
}

.input-wrapper.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.input-wrapper.error:focus-within {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-wrapper.success {
  border-color: #10b981;
}

.input-wrapper.success:focus-within {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.card {
  width: 100%;
}

#events {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  height: 400px;
  color: #fff;
}
