* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans KR", sans-serif;
  color: #ffffff;
}

body {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8, 15, 30, 0.7),
    rgba(20, 35, 60, 0.55)
  );
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.weather {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.clock {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: right;
}

.hero {
  margin-top: 20px;
}

.subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.title {
  margin: 0 0 24px;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

.login-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.login-form input,
.todo-form input {
  flex: 1;
  min-width: 220px;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  backdrop-filter: blur(10px);
}

.login-form input::placeholder,
.todo-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.login-form button,
.todo-form button {
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  color: #0f172a;
  transition: 0.2s ease;
}

.login-form button:hover,
.todo-form button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.greeting {
  margin: 10px 0 0;
  font-size: 30px;
  font-weight: 700;
}

.todo-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.todo-header h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.todo-header p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
}

.todo-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.todo-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.4;
}

.todo-delete {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.todo-delete:hover {
  background: rgba(255, 255, 255, 0.24);
}

.bottom-bar {
  margin-top: auto;
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.quote span:first-child {
  font-size: 15px;
  font-weight: 600;
}

.quote span:last-child {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .clock {
    font-size: 38px;
    text-align: left;
  }

  .title {
    font-size: 36px;
  }

  .greeting {
    font-size: 24px;
  }
}
