/* ====== GLOBAL STYLING ====== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: rgb(159, 159, 197);
  background-size: 400% 400%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  animation: bgShift 8s infinite alternate ease-in-out;
}


@keyframes bgShift {
  0% { background-position: left; }
  100% { background-position: right; }
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #0a3d62, #145da0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  z-index: 10;
  animation: fadeIn 1s ease-in;
}

.welcome-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: popIn 1s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.welcome-quote {
  font-size: 18px;
  font-style: italic;
  color: #e3f2fd;
  max-width: 600px;
  animation: typing 3s steps(40, end), blink 0.5s step-end infinite alternate;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ====== MAIN CONTAINER ====== */
.container {
  background: #ffffffcc;
  backdrop-filter: blur(8px);
  width: 420px;
  padding: 40px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(79, 81, 199, 0.1);
  text-align: center;
  transition: all 0.4s ease;
}

.container:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.37);
}

/* ====== TITLE ====== */
h1 {
  background: linear-gradient(90deg, #0a3d62, #1e81b0, #145da0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* ====== FORM ELEMENTS ====== */
label {
  display: block;
  text-align: left;
  font-weight: 500;
  color: #333;
  margin: 12px 0 6px;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid #c9c9c9;
  font-size: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  outline: none;
  background-color: #fafafa;
}

input:focus {
  border-color: #0a3d62;
  box-shadow: 0 0 10px rgba(10, 61, 98, 0.3);
  transform: scale(1.02);
}

/* ====== BUTTON ====== */
button {
  background: linear-gradient(135deg, #0a3d62, #1e81b0);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(10, 61, 98, 0.25);
}

button::after {
  content: "";
  position: absolute;
  width: 0;
  height: 300%;
  top: 50%;
  left: 50%;
  background: rgba(247, 236, 236, 0.2);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.5s ease;
}

button:hover::after {
  width: 250%;
}

button:hover {
  background: linear-gradient(135deg, #145da0, #2a9df4);
  transform: translateY(-2px);
}

/* ====== RESULT BOX ====== */
.result {
  margin-top: 25px;
  background: #e3f2fd;
  padding: 20px;
  border-radius: 14px;
  display: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: slideUp 0.6s ease forwards;
}

.result h3 {
  color: #0a3d62;
  margin-bottom: 8px;
  font-weight: 600;
}

.result p {
  font-size: 22px;
  font-weight: 600;
  color: #145da0;
  letter-spacing: 0.5px;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== FOOTER ====== */
footer {
  margin-top: 25px;
  color: #666;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.3px;
  text-shadow: 0 0 5px rgba(20, 93, 160, 0.15);
}

/* ====== ANIMATION ====== */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 25px;
  }

  h1 {
    font-size: 22px;
  }

  input, button {
    font-size: 14px;
  }
}
