*,
*:before,
*:after {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

:root {
  --fontsize-0: 12px;
  --fontsize-1: 14px;
  --fontsize-2: 18px;
  --fontsize-3: 20px;
  --fontsize-4: 24px;
  --fontsize-5: 32px;
  --fontsize-6: 48px;
  --fontsize-7: 64px;

  --color-primary-0: #fefde9;
  --color-primary-1: #fefde9;
  --color-primary-2: #fefde9;
  --color-secondary-0: #bfdad3;
  --color-secondary-1: #5bb5ab;
  --color-secondary-2: #5082c9;
  --color-success-0: #7cc47f;
  --color-success-1: #4caf50;
  --color-success-2: #38803b;
  --color-warning-0: #ffb445;
  --color-warning-1: #ff9800;
  --color-warning-2: #ba6f00;
  --color-error-0: #f7766c;
  --color-error-1: #f44336;
  --color-error-2: #b23128;
  --color-light-0: #fff;
  --color-light-1: #f3f3f3;
  --color-light-2: #efefef;
  --color-light-3: #cecece;
  --color-dark-0: #8c8c8c;
  --color-dark-1: #666;
  --color-dark-2: #3c3930;
  --color-dark-3: #000;

  --space-0: 0px;
  --space-1: 4px;
  --space-2: 5px;
  --space-3: 16px;
  --space-4: 32px;
  --space-5: 64px;
  --space-6: 128px;
  --space-7: 256px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--color-primary-1);
  color: var(--color-dark-2);
  font-family: "Source Han Sans Chinese", Helvetica, "LiHei Pro", "微軟正黑體",
    sans-serif;
}

a {
  text-decoration: none;
}

.link {
  cursor: pointer;
  position: relative;
  padding: var(--space-3) var(--space-5);
  color: var(--color-light-0);
  border-radius: 10px;
  line-height: 1;
  font-size: var(--fontsize-3);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: var(--space-2);
  border-left: 2px solid #376855;
  border-right: 2px solid #376855;
  border-top: 1px solid #5cae8e;
  border-bottom: 2px solid #376855;
  background-image: linear-gradient(
    #c8e1dd 0%,
    #62b9a6 10%,
    #61b9a1 90%,
    #3b957b 100%
  );
}

.link:disabled {
  color: var(--color-light-0);
  border: 1px solid #aaa;
  background-color: #cecdc8;
  background-image: none;
  cursor: not-allowed;
}

.link.secondary {
  color: var(--color-dark-0);
  border-left: 2px solid #999;
  border-right: 2px solid #999;
  border-top: 1px solid #cecdc8;
  border-bottom: 2px solid #4d4d43;
  background-image: linear-gradient(
    #f2f2f2 0%,
    #e7e7e7 10%,
    #e8e8e8 90%,
    #abacae 100%
  );
}

.link:active {
  position: relative;
  top: 1px;
}

#root {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.desktop {
  display: block;
  position: relative;
}

.mobile {
  display: none;
  position: relative;
}

.container {
  position: relative;
  width: 1200px;
  margin: 0 auto;
}

.navbar {
  height: 70px;
  background-color: var(--color-light-0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.075);
}

.navbar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar__logo {
  height: 28px;
}

.navbar__logo img {
  height: 100%;
}

.navbar__i-life {
  width: 152px;
  height: 33px;
  background-image: url("../images/logo_vicapply_1.svg");
  background-repeat: no-repeat;
}

.navbar__i-life:hover {
  background-image: url("../images/logo_vicapply_2.svg");
}

.footer {
  padding: var(--space-3);
  background-color: var(--color-light-1);
  color: var(--color-dark-2);
  text-align: center;
  font-size: var(--fontsize-1);
}

.success {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-dark-2);
}

.success img {
  max-width: 672px;
  width: 100%;
  height: auto;
}

.success__message {
  text-align: center;
  line-height: 2;
}

.desktop.swiper {
  width: 100%;
  height: 620px;
}

.desktop .slide {
  width: 100%;
  height: 100%;
  background-color: var(--color-light-0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.desktop .swiper-slide.active img {
  opacity: 1;
}

.desktop .slide-1 {
  position: relative;
  background-image: url("../images/desktops-Carousel-01.jpg");
}

.desktop .slide-2 {
  background-image: url("../images/desktops-Carousel-02.jpg");
}

.desktop .slide-3 {
  background-image: url("../images/desktops-Carousel-03.jpg");
}

.desktop .slide-1-1,
.desktop .slide-2-1,
.desktop .slide-3-1 {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 460px;
  height: 170px;
  margin-left: -35%;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

.desktop .slide-1-2,
.desktop .slide-2-2,
.desktop .slide-3-2 {
  position: absolute;
  bottom: 20%;
  left: 50%;
  display: flex;
  align-items: center;
  width: 460px;
  height: 50px;
  margin-left: -35%;
  gap: 16px;
}

.desktop .slide-2-2,
.desktop .slide-3-2 {
  height: 120px;
  gap: 32px;
}

.desktop .slide-1-2 img,
.desktop .slide-2-2 img,
.desktop .slide-3-2 img {
  height: 100%;
  width: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in 0.2s;
}

.gift-memo {
  padding: var(--space-2);
  background-color: #5ab0a5;
  color: #ffec1b;
  text-align: center;
}

.gift-memo span {
  color: #fff;
}

.desktop.gift {
  padding: var(--space-6) 0;
  background-color: var(--color-light-0);
}

.desktop .gift__desc h1 {
  color: var(--color-secondary-1);
  text-align: center;
}

.desktop .gift__desc p {
  width: 86%;
  line-height: 2;
}

.desktop .gift__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 400px;
  gap: 10%;
}

.desktop .gift__img {
  position: relative;
  width: 45%;
  height: 100%;
  background-image: url("../images/pic_01.png");
  background-position: center top;
  background-repeat: no-repeat;
}

.desktop .gift__img__ribbon {
  position: absolute;
  width: 90%;
  bottom: -20px;
  left: 5%;
  opacity: 0.25;
  transition: opacity 0.3s ease-in, bottom 0.3s ease-in;
}

.desktop .gift__img__ribbon.active {
  opacity: 1;
  bottom: 0;
}

.desktop .gift__img__bubble-1 {
  position: absolute;
  width: 92px;
  bottom: 70px;
  left: -40px;
  animation: bounce 3s ease-in-out 0s infinite alternate;
}

.desktop .gift__img__bubble-2 {
  position: absolute;
  width: 117px;
  top: -20px;
  right: 20px;
  animation: bounce 1s ease-in-out 0s infinite alternate;
}

.mobile.gift {
  padding: var(--space-4);
  background-color: var(--color-light-0);
  text-align: center;
}

.mobile.gift h1 {
  color: var(--color-secondary-1);
  font-size: var(--fontsize-3);
}

.mobile .gift__img {
  position: relative;
  width: 100%;
  height: 250px;
  background-image: url("../images/pic_01.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
}

.mobile .gift__img__ribbon {
  position: absolute;
  width: 90%;
  bottom: 0;
  left: 50%;
  margin-left: -45%;
}

.mobile .gift__img__bubble-1 {
  position: absolute;
  width: 72px;
  bottom: 50px;
  left: -36px;
  animation: bounce 3s ease-in-out 0s infinite alternate;
}

.mobile .gift__img__bubble-2 {
  position: absolute;
  width: 97px;
  top: -30px;
  right: 0px;
  animation: bounce 1s ease-in-out 0s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(20px);
  }
}

.mobile .gift__desc img {
  width: 100%;
  margin: var(--space-4) 0 var(--space-3);
}

.mobile .gift__desc p {
  color: var(--color-dark-1);
  line-height: 1.5;
  text-align: left;
  font-size: var(--fontsize-1);
}

.login {
  padding: var(--space-6) 0;
}

.login__vendor {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 2px solid var(--color-light-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  gap: var(--space-3);
}

.login__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10%;
}

.login__img {
  position: relative;
  width: 45%;
  height: 100%;
}

.login__img img {
  width: 90%;
  opacity: 0.25;
  transition: opacity 0.3s ease-in, bottom 0.3s ease-in;
}

.login__img img.active {
  opacity: 1;
  bottom: 0;
}

.login__form {
  width: 45%;
}

.login__form h1 {
  color: var(--color-dark-1);
  font-size: var(--fontsize-3);
  text-align: center;
}

.login__form h2 {
  color: var(--color-dark-0);
  font-size: var(--fontsize-2);
  font-weight: normal;
}

.login__tab {
  display: flex;
  overflow: hidden;
  background-color: var(--color-light-0);
}

.login__tab button {
  flex: 1;
  padding: var(--space-3);
  color: var(--color-dark-2);
  border: 2px solid var(--color-light-3);
  outline: none;
  font-size: var(--fontsize-2);
  cursor: pointer;
}

.login__tab button.active {
  background-color: var(--color-light-0);
  border-bottom-color: var(--color-light-0);
}

.login__tab__content {
  display: none;
  padding: var(--space-3);
  color: var(--color-dark-2);
  background-color: var(--color-light-0);
  border: 2px solid var(--color-light-3);
  border-top: none;
}

.login__forget {
  display: flex;
  justify-content: center;
  padding: var(--space-2) 0 var(--space-3);
}

.login__forget a {
  display: inline-block;
  color: #5759c0;
  padding-bottom: var(--space-1);
  border-bottom: 1px solid #5759c0;
}

#signup-form,
#login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.field > * {
  width: 100%;
}

.error {
  display: none;
  text-align: right;
  color: var(--color-error-1);
}

.signup-label {
  margin-bottom: var(--space-3);
  color: var(--color-dark-2);
}

.signup-error {
  display: none;
  padding: 0 0 var(--space-3);
  color: var(--color-error-1);
}

#signup-form input,
#login-form input,
#upload-form input,
#upload-form select {
  padding: calc(var(--space-2) + var(--space-1));
  border: 1px solid var(--color-light-3);
  border-radius: 0;
  background-color: var(--color-light-0);
}

#upload-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.signup__checkbox-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fontsize-1);
}

.signup__checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.agreement__link {
  color: var(--color-secondary-1);
}

.upload {
  width: 710px;
  margin: 0 auto;
}

.instruction__title {
  text-align: center;
  font-size: var(--fontsize-2);
  line-height: 2;
  margin-top: var(--space-5);
}

.instruction__title span {
  color: var(--color-secondary-1);
}

.instruction__img {
  position: relative;
  width: 100%;
  height: 220px;
  margin-bottom: var(--space-4);
}

.instruction__img__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.instruction__img__content div {
  flex: 1;
  display: flex;
  align-items: center;
}

.instruction__img__content img {
  max-width: 334px;
}

.instruction__img__2 {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  margin-left: -35px;
  margin-top: -35px;
  z-index: 1;
}

.upload__img {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.upload__img__box {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-dark-0);
  border-radius: 15px;
  overflow: hidden;
}

.upload__caption {
  display: flex;
  justify-content: center;
  padding: var(--space-3);
  background-color: var(--color-secondary-0);
}

.upload__caption button {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
}

.upload__caption button img {
  width: 32px;
}

.upload__caption input[type="file"] {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.upload__preview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  padding: var(--space-3);
  background-color: var(--color-light-0);
}

.upload__preview img {
  height: 100%;
  width: auto;
}

.upload__requirement,
.upload__memo {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  font-size: var(--fontsize-1);
  color: var(--color-dark-1);
}

.upload__memo {
  margin-top: 0;
}

.upload__requirement span {
  color: var(--color-secondary-1);
}

#upload-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.upload-address-1 {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.upload-address-1 > * {
  flex: 1;
}

#upload-form .upload-code {
  display: flex;
  gap: var(--space-3);
}

#upload-form .upload-code button {
  padding: var(--space-2);
  font-size: var(--fontsize-1);
}

#upload-form .action {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0s ease 0.4s;
}

.modal::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  opacity: 0.25;
}

.modal__content {
  position: relative;
  z-index: 101;
  width: 650px;
  height: 600px;
  padding: var(--space-4);
  background-color: var(--color-light-0);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.modal__content h1 {
  font-size: var(--fontsize-4);
}

.modal__content p {
  text-align: center;
}

.modal__content .emphasis {
  margin-bottom: 0;
  color: var(--color-secondary-2);
  font-size: var(--fontsize-4);
}

.modal__content .close-btn {
  position: absolute;
  right: var(--space-4);
  top: var(--space-3);
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-dark-0);
  font-size: var(--fontsize-6);
  cursor: pointer;
}

.modal__content .next-btn {
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-secondary-2);
  font-size: var(--fontsize-4);
  cursor: pointer;
}

.mobile .slide {
  width: 100%;
  height: 100%;
  background-color: var(--color-light-0);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.mobile .slide-1 {
  position: relative;
  background-image: url("../images/carousel-mobile-1.jpg");
}

.mobile .slide-2 {
  background-image: url("../images/carousel-mobile-2.jpg");
}

.mobile .slide-3 {
  background-image: url("../images/carousel-mobile-3.jpg");
}

@media screen and (max-width: 768px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .container {
    width: 100%;
  }

  .navbar__content {
    padding: 0 var(--space-3);
  }

  .navbar__logo {
    width: 60%;
    height: auto;
  }

  .navbar__i-life {
    width: 115px;
    height: 24px;
  }

  .success {
    padding: 0 var(--space-4);
  }

  .link {
    padding: calc(var(--space-2) + var(--space-1)) var(--space-4);
    font-size: var(--fontsize-2);
  }

  .login {
    padding: 0 0 var(--space-4);
  }

  .login__vendor {
    justify-content: center;
  }

  .login__content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
  }

  .login__img {
    width: 100%;
    padding: var(--space-3) var(--space-4);
  }

  .login__img img {
    width: 100%;
    opacity: 1;
    transition: none;
  }

  .login__form {
    width: 100%;
    padding: 0 var(--space-3);
  }

  .login__form h1 {
    font-size: var(--fontsize-2);
  }

  .login__form h2 {
    font-size: var(--fontsize-1);
  }

  .login__tab button {
    padding: calc(var(--space-2) + var(--space-1));
  }

  .upload {
    width: 100%;
    margin: 0;
    padding: 0 var(--space-3);
  }

  .instruction__title {
    text-align: center;
    font-size: var(--fontsize-1);
    line-height: 1.5;
    margin-top: var(--space-4);
  }

  .instruction__img {
    height: 150px;
  }

  .instruction__img__content img {
    width: 100%;
  }

  .instruction__img__2 {
    width: 40px;
    margin-left: -20px;
    margin-top: -20px;
  }

  .upload__img {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .upload__img__box {
    width: 100%;
  }

  .upload__preview {
    height: 120px;
  }

  .upload-address-1 > select {
    flex: 2;
  }

  .upload-address-1 > input {
    flex: 1;
    width: 100%;
  }
}

@media screen and (min-width: 1920px) {
  .slide {
    background-size: contain;
  }
}
