
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #594d65;
  background: linear-gradient(145deg, #fff1f5, #f3efff 50%, #eaf6ff);
}

[hidden] {
  display: none !important;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

/* LOGIN */

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.auth-card {
  width: 100%;
  max-width: 390px;
  padding: 32px 25px 22px;
  border-radius: 27px;
  background: #ffffffed;
  box-shadow: 0 12px 40px #8876a522;
  text-align: center;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
  color: #8873a3;
}

.auth-card > p {
  color: #96899f;
  font-size: 14px;
}

#authForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

#authForm input,
.calendar-sync input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  border: 1px solid #e9dfed;
  border-radius: 14px;
  background: #fff;
  color: #594d65;
  outline: none;
}

#authForm input:focus,
.calendar-sync input:focus,
select:focus {
  border-color: #b7a3df;
}

.primary,
.secondary {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(100deg, #f0a0bb, #b7a4e7, #9fc9e9);
}

.primary {
  font-weight: 600;
}

.primary:disabled,
.secondary:disabled {
  opacity: .6;
  cursor: wait;
}

.text-button {
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: #927bb4;
  font-size: 14px;
}

.status {
  min-height: 18px;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #897a96;
}

.language-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #f0e9f2;
  color: #93869d;
  font-size: 12px;
}

.language-box select {
  padding: 7px 10px;
  border: 1px solid #e9dfed;
  border-radius: 10px;
  background: white;
  color: #594d65;
}

/* APP */

main {
  width: min(100%, 560px);
  margin: auto;
  padding: 24px 20px 175px;
}

.section-heading {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 650;
  color: #927da7;
}

#dateList,
#availableDates {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.empty-message {
  width: 100%;
  margin: 35px auto;
  text-align: center;
  color: #96899f;
  font-size: 14px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 65px;
  padding: 13px 16px;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #ffffffdf;
  box-shadow: 0 5px 17px #8274a51a;
}

.date-item:nth-child(5n+1) {
  border-left: 5px solid #f0a0bb;
}

.date-item:nth-child(5n+2) {
  border-left: 5px solid #b7a4e7;
}

.date-item:nth-child(5n+3) {
  border-left: 5px solid #9fc9e9;
}

.date-item:nth-child(5n+4) {
  border-left: 5px solid #f2d89a;
}

.date-item:nth-child(5n+5) {
  border-left: 5px solid #a9d8c0;
}

.check {
  appearance: none;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  margin: 0;
  border: 2px solid #c8b9d5;
  border-radius: 50%;
  background: white;
}

.check:checked {
  border-color: #a88de0;
  background: #a88de0;
}

.check:checked::after {
  content: "✓";
  display: block;
  color: white;
  text-align: center;
  line-height: 19px;
}

.date-text {
  font-size: 15px;
  font-weight: 600;
}

#availableCount {
  font-size: 13px;
  color: #92839d;
}

/* BOTTOM AREA */

.bottom-area {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 20px calc(17px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #f3efff 35%);
}

.plus {
  display: block;
  width: min(100%, 520px);
  height: 58px;
  margin: auto;
  border: 0;
  border-radius: 20px;
  color: white;
  font-size: 32px;
  font-weight: 300;
  background: linear-gradient(100deg, #f0a0bb, #b7a4e7 55%, #9fc9e9);
  box-shadow: 0 8px 20px #a18bce45;
}

.logout-button {
  width: min(100%, 520px);
  height: 27px;
  padding: 0;
  border: 1px solid #e9dfed;
  border-radius: 9px;
  color: #8975a4;
  background: #ffffffb8;
  font-size: 11px;
}

.date-menu {
  width: min(100%, 520px);
  max-height: 65vh;
  overflow-y: auto;
  margin: 0 auto 5px;
  padding: 17px;
  border: 1px solid white;
  border-radius: 21px;
  background: #ffffffef;
  box-shadow: 0 8px 25px #8274a533;
}

.calendar-sync {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee5f3;
}

.secondary {
  width: 100%;
  margin-top: 9px;
  font-size: 14px;
}

.date-selects {
  display: flex;
  gap: 9px;
}

.date-selects select {
  flex: 1;
  min-width: 0;
  height: 49px;
  border: 1px solid #e9dfed;
  border-radius: 13px;
  background: white;
  color: #594d65;
  text-align: center;
}

.confirm {
  display: block;
  width: 49px;
  height: 49px;
  margin: 14px auto 0;
  border: 0;
  border-radius: 50%;
  color: white;
  background: #a9d8c0;
  font-size: 25px;
}

@media (min-width: 700px) {
  .auth-card {
    padding: 38px 32px 25px;
  }

  main {
    padding-top: 28px;
  }
}
