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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bgImage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, rgba(120, 130, 255, 0.7), rgba(255, 120, 180, 0.7));
  mix-blend-mode: soft-light;
  backdrop-filter: blur(4px);
  z-index: -1;
}

body > div:first-of-type,
#login-form,
#todo-form,
#greeting {
  width: 100%;
  max-width: 420px;
}

#clock {
  font-size: 5rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.25rem;
}

#days {
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.15em;
  margin-bottom: 1.8rem;
}

.hidden {
  display: none !important;
}

form {
  margin-bottom: 1rem;
}

#login-input,
#todo-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

#login-input::placeholder,
#todo-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#login-input:focus,
#todo-input:focus {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7), 0 16px 40px rgba(0, 0, 0, 0.5);
}

#login-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
  margin-bottom: 1.2rem;
}

#login-input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}

#login-button {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  white-space: nowrap;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#login-button:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

#login-button:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  opacity: 0.9;
}

#greeting {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

#todo-form {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

#todo-list {
  list-style: none;
  width: 100%;
  max-width: 420px;
  padding: 0;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#todo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.9rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  font-size: 0.95rem;
}

#todo-list li span {
  flex: 1;
  text-align: left;
  padding-right: 0.5rem;
  word-break: break-word;
}

#todo-list li button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.1s ease, filter 0.15s ease;
}

#todo-list li button:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9));
}

#weather {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
}

#weather span:first-child {
  font-weight: 500;
}

#weather span:last-child {
  opacity: 0.9;
}

@media (max-width: 480px) {
  #clock {
    font-size: 2.4rem;
  }

  #todo-list li {
    font-size: 0.9rem;
  }

  #weather {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 1rem;
  }
}
