@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

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

body,
input {
  font-family: "Poppins", sans-serif;
}

main {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background-color: #ffaa00;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box {
  position: relative;
  width: 100%;
  max-width: 1020px;
  height: 640px;
  background-color: #fff;
  border-radius: 3.3rem;
  box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
}

.inner-box {
  position: absolute;
  width: calc(100% - 4.1rem);
  height: calc(100% - 4.1rem);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.forms-wrap {
  position: absolute;
  height: 100%;
  width: 45%;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  transition: 0.8s ease-in-out;
}

form {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: opacity 0.02s 0.4s;
}

form.sign-up-form {
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 27px;
  margin-right: 0.3rem;
}

.logo h4 {
  font-size: 1.1rem;
  margin-top: -9px;
  letter-spacing: -0.5px;
  color: #151111;
}

.heading h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #151111;
}

.heading h6 {
  color: #bababa;
  font-weight: 400;
  font-size: 0.75rem;
  display: inline;
}

.toggle {
  color: #151111;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.3s;
}

.toggle:hover {
  color: #8371fd;
}

.input-wrap {
  position: relative;
  height: 37px;
  margin-bottom: 2rem;
}

.input-field {
  position: absolute;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  border-bottom: 1px solid #bbb;
  padding: 0;
  font-size: 0.95rem;
  color: #151111;
  transition: 0.4s;
}

label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: #bbb;
  pointer-events: none;
  transition: 0.4s;
}

.input-field.active {
  border-bottom-color: #151111;
}

.input-field.active + label {
  font-size: 0.75rem;
  top: -2px;
}

.sign-btn {
  display: inline-block;
  width: 100%;
  height: 43px;
  background-color: #151111;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 2rem;
  transition: 0.3s;
}

.sign-btn:hover {
  background-color: #8371fd;
}

.text {
  color: #bbb;
  font-size: 0.7rem;
}

.text a {
  color: #bbb;
  transition: 0.3s;
}

.text a:hover {
  color: #8371fd;
}

main.sign-up-mode form.sign-in-form {
  opacity: 0;
  pointer-events: none;
}

main.sign-up-mode form.sign-up-form {
  opacity: 1;
  pointer-events: all;
}

main.sign-up-mode .forms-wrap {
  left: 55%;
}

main.sign-up-mode .carousel {
  left: 0%;
}

.carousel {
  position: absolute;
  height: 100%;
  width: 55%;
  left: 45%;
  top: 0;
  background-color: #ffb700;
  border-radius: 2rem;
  display: grid;
  grid-template-rows: auto 1fr;
  padding-bottom: 2rem;
  overflow: hidden;
  transition: 0.8s ease-in-out;
}

.images-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.image {
  width: 100%;
  grid-column: 1/2;
  grid-row: 1/2;
  opacity: 0;
  transition: opacity 0.3s, transform 0.5s;
  -webkit-mask-image: url("./img/brush-mask.svg");
  mask-image: url("./img/brush-mask.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 200% 100%;
  mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
}

.img-1 {
  transform: translate(0, -50px);
}

.img-2 {
  transform: scale(0.4, 0.5);
}

.img-3 {
  transform: scale(0.3) rotate(-20deg);
}

.image.show {
  opacity: 1;
  transform: none;
  animation: brushReveal 0.9s cubic-bezier(0.22, 0.9, 0.32, 1) forwards;
}

@keyframes brushReveal {
  from {
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
  to {
    -webkit-mask-position: 0% 0;
    mask-position: 0% 0;
  }
}

.text-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.text-wrap {
  max-height: 2.2rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.text-group {
  display: flex;
  flex-direction: column;
  text-align: center;
  transform: translateY(0);
  transition: 0.5s;
}

.text-group h2 {
  line-height: 2.2rem;
  font-weight: 600;
  font-size: 1.6rem;
}

.bullets {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bullets span {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #aaa;
  margin: 0 0.25rem;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.bullets span.active {
  width: 1.1rem;
  background-color: #151111;
  border-radius: 1rem;
}

@media (max-width: 850px) {
  .box {
    height: auto;
    max-width: 550px;
    overflow: hidden;
  }

  .inner-box {
    position: static;
    transform: none;
    width: revert;
    height: revert;
    padding: 2rem;
  }

  .forms-wrap {
    position: revert;
    width: 100%;
    height: auto;
  }

  form {
    max-width: revert;
    padding: 1.5rem 2.5rem 2rem;
    transition: transform 0.8s ease-in-out, opacity 0.45s linear;
  }

  .heading {
    margin: 2rem 0;
  }

  form.sign-up-form {
    transform: translateX(100%);
  }

  main.sign-up-mode form.sign-in-form {
    transform: translateX(-100%);
  }

  main.sign-up-mode form.sign-up-form {
    transform: translateX(0%);
  }

  .carousel {
    position: revert;
    height: auto;
    width: 100%;
    padding: 3rem 2rem;
    display: flex;
  }

  .images-wrapper {
    display: none;
  }

  .text-slider {
    width: 100%;
  }
}

@media (max-width: 530px) {
  main {
    padding: 1rem;
  }

  .box {
    border-radius: 2rem;
  }

  .inner-box {
    padding: 1rem;
  }

  .carousel {
    padding: 1.5rem 1rem;
    border-radius: 1.6rem;
  }

  .text-wrap {
    margin-bottom: 1rem;
  }

  .text-group h2 {
    font-size: 1.2rem;
  }

  form {
    padding: 1rem 2rem 1.5rem;
  }
}

/* ==================================================
   LOGIN PAGE — LOAD-IN ANIMATIONS
================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.box {
  opacity: 0;
  animation: popIn 0.6s ease-out forwards;
}

.forms-wrap .logo {
  opacity: 0;
  animation: fadeInDown 0.6s ease-out 0.15s forwards;
}

.forms-wrap .heading {
  opacity: 0;
  animation: fadeInDown 0.6s ease-out 0.3s forwards;
}

.actual-form .input-wrap {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}
.actual-form .input-wrap:nth-of-type(1) { animation-delay: 0.45s; }
.actual-form .input-wrap:nth-of-type(2) { animation-delay: 0.6s; }
.actual-form .input-wrap:nth-of-type(3) { animation-delay: 0.75s; }

.actual-form .sign-btn {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

.actual-form .error-msg {
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards;
}

.actual-form .text {
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.05s forwards;
}

.carousel {
  opacity: 0;
  animation: fadeInRight 0.7s ease-out 0.3s forwards;
}


.text-slider .text-group h2 {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.bullets span {
  opacity: 0;
  animation: popIn 0.4s ease-out forwards;
}
.bullets span:nth-child(1) { animation-delay: 1.05s; }
.bullets span:nth-child(2) { animation-delay: 1.15s; }
.bullets span:nth-child(3) { animation-delay: 1.25s; }

@media (prefers-reduced-motion: reduce) {
  .box, .forms-wrap .logo, .forms-wrap .heading, .actual-form .input-wrap,
  .actual-form .sign-btn, .actual-form .error-msg, .actual-form .text,
  .carousel, .image.show, .text-slider .text-group h2, .bullets span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==================================================
   CASH BOOK — SYNCED BADGE
================================================== */

.payment-status-badge.synced {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 10px;

    border-radius: 20px;

    background: #eef2ff;
    color: #4f46e5;

    font-size: 12px;
    font-weight: 600;

    cursor: help;
}

.payment-status-badge.synced i {
    font-size: 14px;
}

/* ==================================================
   NO ACCESS PAGE
================================================== */

.no-access-body {
    margin: 0;
    background: linear-gradient(135deg, #406ff3, #667eea);
}

.no-access-main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.no-access-card {
    width: 100%;
    max-width: 420px;

    padding: 44px 36px;

    background: #ffffff;

    border-radius: 24px;

    box-shadow:
        0 30px 70px
        rgba(20, 30, 55, 0.25);

    text-align: center;

    animation: noAccessShow 0.3s ease-out;
}

@keyframes noAccessShow {

    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.no-access-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #fff0f0;
    color: #e5484d;

    font-size: 34px;
}

.no-access-card h2 {
    margin: 0 0 14px;

    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 700;

    color: #1c2337;
}

.no-access-card p {
    margin: 0 0 30px;

    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.7;

    color: #64748b;
}

.no-access-card p strong {
    color: #26334a;
}

.no-access-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-access-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    height: 46px;

    border-radius: 12px;

    font-family: 'Roboto', sans-serif;
    font-size: 13.5px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.no-access-btn i {
    font-size: 18px;
}

.no-access-btn.primary {
    background: linear-gradient(135deg, #406ff3, #5d7df5);
    color: #ffffff;

    box-shadow:
        0 6px 16px
        rgba(64, 111, 243, 0.25);
}

.no-access-btn.primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px
        rgba(64, 111, 243, 0.32);
}

.no-access-btn.secondary {
    background: #f4f6fb;
    color: #64748b;

    border: 1px solid #e2e6ef;
}

.no-access-btn.secondary:hover {
    background: #eef1f6;
    color: #406ff3;
    border-color: #cbd7ff;

    transform: translateY(-2px);
}


@media (max-width: 480px) {

    .no-access-card {
        padding: 34px 24px;
        border-radius: 20px;
    }

}