/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* BODY BACKGROUND */
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #2b1055, #000010);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
}

/* MAIN CONTAINER */
.container {
  width: 100%;
  max-width: 480px;
  padding: 20px;
}

/* GLASS CARD */
.content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 30px 25px;
  box-shadow: 0 0 40px rgba(180, 120, 255, 0.25);
  animation: float 6s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* HEADER */
header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FIELD */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* FIELD GROUP (DAY / MONTH / YEAR) */
.field-group {
  display: flex;
  gap: 12px;
  width: 100%;
}

.field-group .field {
  flex: 1;
}

/* LABEL */
label {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* INPUT */
input {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

input:focus {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 12px rgba(170, 120, 255, 0.7);
}

/* BUTTON */
button {
  margin-top: 8px;
  padding: 12px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #9b5cff, #d06cff);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(210, 140, 255, 0.85);
}

button:active {
  transform: scale(0.98);
}

/* RESULT SECTION */
.result-section {
  margin-top: 25px;
}

#result {
  padding: 18px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: inset 0 0 15px rgba(150, 90, 255, 0.35);
  animation: fadeIn 0.6s ease forwards;
}

/* RESULT ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FOOTER */
footer {
  margin-top: 18px;
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* MOBILE FIX */
@media (max-width: 420px) {
  .field-group {
    flex-direction: column;
  }

  h1 {
    font-size: 1.8rem;
  }
}
