@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('../uploads/admin/bg_2.png') no-repeat center center;
  background-size: cover; /* makes image fit the screen */
  
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}


.neon-bubble {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;

  /* glowing aura */
  filter: blur(3px) drop-shadow(0 0 10px rgba(255,255,255,0.9));

  animation: neon-bubble-anim 1s ease-out forwards;
}

@keyframes neon-bubble-anim {
  0% {
    transform: scale(0.5);
    opacity: 1;
    filter: blur(2px) drop-shadow(0 0 8px rgba(255,255,255,1));
  }
  100% {
    transform: scale(4);
    opacity: 0;
    filter: blur(12px) drop-shadow(0 0 25px rgba(255,255,255,0));
  }
}



.error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ff4d4d;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px auto;
    color: white;
    font-size: 40px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.5);
  }

.header {
  font-weight: 800;
  font-size: 38px;
}

.otp-input {
    width: 60px;        /* o kahit anong size na gusto mo */
    height: 60px;       /* para square */
    font-size: 24px;    /* laki ng number/letter */
    text-align: center; /* dito nagce-center ang text */
    margin: 0 5px;      /* spacing sa pagitan ng inputs */
    
}

/* ================= CONTAINER ================= */
.container {
  background-color: #fff;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
  width: 850px;
  max-width: 100%;
  min-height: 550px;
}

/* ================= FORM ================= */
.container form {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 50px;
  height: 100%;
}

.container input {
  background-color: #f1f3f6;
  border: 2px solid #ced4da;
  margin: 10px 0;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.container input:focus {
  border-color: #3778C2;
  box-shadow: 0 0 0 0.2rem rgba(55,120,194,0.25);
}

/* ================= BUTTON ================= */
.container button {
  background: linear-gradient(to right, #7c3aed, #a855f7);
  color: #fff;
  font-size: 16px;
  padding: 12px 45px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 220px;
}

.container button:hover {
   background: linear-gradient(to right, #8b5cf6, #c084fc);
  transform: scale(1.05);
}

/* ================= FORM CONTAINERS ================= */
.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.sign-in {
  left: 0;
  width: 50%;
  z-index: 2;
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.sign-up {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateX(0);
}

/* ================= ACTIVE STATE ================= */
.container.active .sign-in {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translateX(100%);
}

.container.active .sign-up {
  opacity: 1;
  z-index: 5;
  pointer-events: all;
  transform: translateX(100%);
}

/* ================= TOGGLE PANELS ================= */
.toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  border-radius: 50px 0 0 50px;
  z-index: 1000;
}

.toggle {
  background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(16, 185, 129, 0.2),
    rgba(6, 182, 212, 0.2)
  );

  z-index: 0;
  border-radius: inherit;
}

.toggle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  top: 0;
  transition: all 0.6s ease-in-out;
}

.toggle-left {
  transform: translateX(-200%);
}

.toggle-right {
  right: 0;
}

/* ================= DESKTOP ANIMATIONS ================= */
@media (min-width: 769px) {
  .container.active .toggle-container {
    transform: translateX(-100%);
    border-radius: 0 50px 50px 0;
  }

  .container.active .toggle {
    transform: translateX(50%);
  }

  .container.active .toggle-left {
    transform: translateX(0);
  }

  .container.active .toggle-right {
    transform: translateX(200%);
  }

  @keyframes move {
    0%,49.99% {opacity:0; z-index:1;}
    50%,100% {opacity:1; z-index:5;}
  }
}

  /* ================= MOBILE ANIMATIONS ================= */
@media (max-width: 768px) {
  .container {
    width: 95%;
    min-height: auto;
    border-radius: 20px; /* ibalik rounded edges */
    height: 100dvh;
    max-height: 680px;
    position: relative; /* para gumana yung absolute ng anak */
    overflow: hidden;
  }

  .form-container {
    width: 100%;
    padding: 5px;
    height: auto;
    left: 0 !important;
    bottom: 0; 
  }

  .sign-in {
    width: 100%;
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    bottom: 0;
    margin-top: 150px;
    transition: all 0.6s ease-in-out;

  }

  .sign-up {
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    z-index: 1;
    margin-bottom: 220px;
    transition: all 0.6s ease-in-out;
  }

  .container.active .sign-in {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  .container.active .sign-up {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    z-index: 5;
  }

  /* Toggle panels on mobile */
  .toggle-container {
    position: absolute;
    bottom: 0; /* laging nasa pinaka-baba */
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    transition: transform 0.6s ease-in-out;
    pointer-events: none; /* hindi nakaka-block ng clicks */

  }

  .toggle-container * {
    pointer-events: auto; /* kung may button sa toggle, puwede pa rin pindutin */
  }

  /* kapag naka-activate (sign up), tataas ang buong toggle container */
  .container.active .toggle-container {
    transform: translateY(70%); /* aangat mula sa baba */
  }

  .toggle {
    position: relative;
    left: 0;
    width: 100%;
    height: auto;
    transform: none;
    background: linear-gradient(to bottom right, #0f172a, #581c87, #0f172a);
    border-radius: 10px;
    padding: 20px;
  }

  .toggle-panel {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
  }

  .toggle-left,
  .toggle-right {
    transform: none;
    position: relative;
  }

  .toggle-left {
    display: none;
  }

  .toggle-right {
    display: block;
    border-radius: 50%;
  }

  .container.active .toggle-left {
    display: block;
  }

  .container.active .toggle-right {
    display: none;
  }

  .container input { 
    font-size: 15px; 
    padding: 12px; 
  }
  
  .container button { 
    font-size: 14px; 
    padding: 10px 30px; 
  }
  
  .header {
    font-size: 30px;
  }
}


/* ================= LOGO ================= */
.logo {
  max-width: 200px;
  margin-bottom: 20px;
}

/* ================= EYE ICON ================= */
.position-relative {
  position: relative;
}
.position-relative i {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #7c3aed;
  font-size: 1.4rem;
}

/* ================= VALIDATION ================= */
input.is-invalid { border: 2px solid #dc3545 !important; }
input.is-valid { border: 2px solid #28a745 !important; }
.is-medium { border:2px solid orange !important; }

.form-check-input {
  border: 2px solid #3778C2;
  cursor: pointer;
  width: 2px;
  height: 18px;
}

.form-check-input:checked {
  background-color: #3778C2;
  border-color: #3778C2;
}

.form-check-label {
  font-size: 14px;
  cursor: pointer;
}

.form-check-label a {
  color: #3778C2;
  font-weight: 500;
  text-decoration: none;
}

.container select {
  background-color: #f1f3f6;
  border: 2px solid #ced4da;
  margin: 10px 0;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 10px;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%22292%22%20height%3D%22292%22%20viewBox%3D%220%200%20292%20292%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20fill%3D%22%233778C2%22%20d%3D%22M287%2069.4l-14.1-14.1c-4.7-4.7-12.3-4.7-17%200L146%20165.3%2036.1%2055.4c-4.7-4.7-12.3-4.7-17%200L5%2069.4c-4.7%204.7-4.7%2012.3%200%2017l123%20123c4.7%204.7%2012.3%204.7%2017%200l123-123c4.7-4.7%204.7-12.3%200-17z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.step { display: none; }
.step.active { display: block; }

select:invalid {
  color: #6c757d;
}

.modal .btn {
  background-color: #3778C2;
  color: #fff;
  font-size: 16px;
  padding: 12px 45px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 15px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 200px;
}
