/* Aplica a porra da fonte no site todo */
* {
  font-family: "Ligconsolata", sans-serif;
  font-weight: bold;
  box-sizing: border-box;
}

/* Corpos e fundo */
body {
  margin: 0;
  background-color: #e4e4e4;
  background: url("../img/fundo33.png") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/*----------------------------------HEADER------------------------------------*/

header {
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  position: fixed;
  background-color: #f7f7f7;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
  margin-left: 10px;
  margin-right: 10px;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left-side {
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-logo img.logo-icon {
  height: 60px;
  flex-shrink: 0;
}

.header-logo img.logo-title {
  width: 150px;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.header-logo img.logo-title:hover {
  transform: scale(1.05);
}

.header-right-side {
  width: fit-content;
  height: 100%;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.header-content a {
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.header-content a:hover {
  color: #8752d2;
}

.login-page-button {
  padding: 7px 12px;
  border-radius: 50px;
  background-color: #c5c5c5;
  transition: all 0.3s ease;
}

.login-page-button:hover {
  background-color: #b0b0b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-page-button a {
  color: #000;
}

.register-page-button {
  padding: 7px 12px;
  border-radius: 50px;
  background-color: #8752d2;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.register-page-button:hover {
  background-color: #6d3fb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(135, 82, 210, 0.4);
}

/*--------------------------MAIN--------------------------*/

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
  width: 100%;
  margin: 0;
  margin-top: 70px;
  padding: 20px 0;
}

.main-content {
  display: flex;
  flex-direction: row;
  gap: 250px;
  margin-right: 150px;
}

.main-left-side {
  width: 50%;
  color: #fff;
}

.main-left-side .span-box {
  width: 400px;
  margin-top: 15%;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.main-left-side span {
  font-size: 60px;
}

.main-right-side {
  width: 50%;
}

.visit-button {
  margin: 30px;
  width: 250px;
  height: 60px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #9d6ae0 0%, #8752d2 50%, #6d3fb8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 25px rgba(135, 82, 210, 0.4);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.visit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.visit-button:hover::before {
  left: 100%;
}

.visit-button:hover {
  background: linear-gradient(135deg, #a877e8 0%, #9d6ae0 50%, #8752d2 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 35px rgba(135, 82, 210, 0.6);
  cursor: pointer;
  color: #fff;
}

.visit-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(135, 82, 210, 0.5);
}

.visit-button span {
  font-size: 20px;
}

/*---------------------CAIXA FORMULÁRIO LOGIN/REGISTRO-----------------------*/

.form-box {
  margin: 10px 25%;
  width: 350px;
  height: fit-content;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 25px 30px;
  text-align: center;
  background-color: #f7f7f7;
  color: #000000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.form-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #8752d2;
  letter-spacing: 0.5px;
}

.form-box form {
  width: 100%;
  margin: auto;
  text-align: left;
}

.form-box label {
  font-size: 13px;
  margin-left: 10px;
  color: #666;
  display: block;
}

.form-box input.insert {
  width: 100%;
  height: 45px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 10px 15px;
  margin-bottom: 18px;
  background-color: #fff;
  transition: all 0.3s ease;
  font-size: 14px;
}

.form-box input.insert:focus {
  outline: none;
  border-color: #8752d2;
  box-shadow: 0 0 0 3px rgba(135, 82, 210, 0.1);
  transform: translateY(-2px);
}

.form-box input.insert:hover {
  border-color: #c5c5c5;
}

.form-box form span {
  font-size: 12px;
  display: block;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 15px;
}

.form-box form span a {
  margin: auto;
  color: #8752d2;
  transition: color 0.3s ease;
  text-decoration: none;
}

.form-box form span a:hover {
  color: #6d3fb8;
  text-decoration: underline;
}

.submit-button-box {
  text-align: center;
  margin-top: 15px;
}

.form-box .submit-button,
.form-box input.submit-button,
.form-box button.submit-button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #9d6ae0 0%, #8752d2 50%, #6d3fb8 100%);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 25px rgba(135, 82, 210, 0.4);
  position: relative;
  overflow: hidden;
}

.form-box .submit-button::before,
.form-box input.submit-button::before,
.form-box button.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.form-box .submit-button:hover::before,
.form-box input.submit-button:hover::before,
.form-box button.submit-button:hover::before {
  left: 100%;
}

.form-box .submit-button:hover,
.form-box input.submit-button:hover,
.form-box button.submit-button:hover {
  cursor: pointer;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 35px rgba(135, 82, 210, 0.6);
  background: linear-gradient(135deg, #a877e8 0%, #9d6ae0 50%, #8752d2 100%);
}

.form-box .submit-button:active,
.form-box input.submit-button:active,
.form-box button.submit-button:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(135, 82, 210, 0.5);
}



.terms {
  margin: auto;
  margin-bottom: 10px;
  margin-top: 10px;
  width: 100%;
  font-size: 10px;
  line-height: 1.5;
  color: #666;
}

.terms a {
  color: #8752d2;
  transition: color 0.3s ease;
}

.terms a:hover {
  color: #6d3fb8;
  text-decoration: underline;
}

.redirect {
  margin-top: 15px;
  font-size: 13px;
}

.redirect a {
  color: #8752d2;
  font-weight: bold;
  transition: color 0.3s ease;
}

.redirect a:hover {
  color: #6d3fb8;
  text-decoration: underline;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  z-index: 10000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 400px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.toast.success {
  background: #10b981;
}

.toast.error {
  background: #ef4444;
}

.toast.info {
  background: #3b82f6;
}

/* Success Popup */
.success-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-popup-overlay.active {
  opacity: 1;
}

.success-popup {
  background: #f7f7f7;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 450px;
  width: 90%;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-popup-overlay.active .success-popup {
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

@keyframes scaleIn {
  0% {
    transform: scale(0) rotate(-180deg);
  }

  50% {
    transform: scale(1.2) rotate(20deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

.success-popup h2 {
  color: #1f2937;
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.success-popup p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: normal;
}

.success-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #9d6ae0 0%, #8752d2 50%, #6d3fb8 100%);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 25px rgba(135, 82, 210, 0.4);
  position: relative;
  overflow: hidden;
}

.success-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.success-btn:hover::before {
  left: 100%;
}

.success-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 35px rgba(135, 82, 210, 0.6);
  background: linear-gradient(135deg, #a877e8 0%, #9d6ae0 50%, #8752d2 100%);
}

.success-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(135, 82, 210, 0.5);
}

/*--------------RESPONSIVIDADE MOBILE--------------*/

/* MacBook Air e telas médias (1280px - 1440px) */
@media screen and (max-width: 1440px) and (min-width: 1024px) {
  .header-logo img.logo-icon {
    height: 50px;
  }

  .header-logo img.logo-title {
    width: 130px;
  }

  .header-right-side {
    gap: 20px;
  }

  .header-content a {
    font-size: 14px;
  }
}

/* Tablets e telas médias */
@media screen and (max-width: 1024px) {
  .main-content {
    gap: 100px;
    margin-right: 50px;
  }

  .main-left-side .span-box {
    width: 350px;
  }

  .main-left-side span {
    font-size: 50px;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  header {
    height: 60px;
  }

  .header-content {
    margin-left: 5px;
    margin-right: 5px;
  }

  .header-logo {
    gap: 6px;
  }

  .header-logo img.logo-icon {
    height: 45px;
  }

  .header-logo img.logo-title {
    width: 110px;
    margin-bottom: 10px;
  }

  .header-right-side {
    gap: 15px;
  }

  .header-content a {
    font-size: 13px;
  }

  .login-page-button,
  .register-page-button {
    padding: 6px 10px;
    font-size: 13px;
  }

  .register-page-button {
    margin-right: 10px;
  }

  main {
    margin-top: 60px;
  }

  .main-content {
    flex-direction: column;
    gap: 40px;
    margin-right: 0;
    align-items: center;
  }

  .main-left-side {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-left-side .span-box {
    width: 90%;
    max-width: 500px;
    margin-top: 0;
  }

  .main-left-side span {
    font-size: 42px;
  }

  .visit-button {
    margin: 20px auto;
  }

  .main-right-side {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .form-box {
    margin: 0 auto;
    width: 90%;
    max-width: 400px;
  }
}

/* Celulares */
@media screen and (max-width: 480px) {
  header {
    height: 55px;
  }

  .header-logo {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .header-logo img.logo-icon {
    height: 40px;
  }

  .header-logo img.logo-title {
    width: 100px;
    margin-bottom: 8px;
  }

  .header-right-side {
    gap: 8px;
  }

  .header-right-side > a {
    display: none;
  }

  .header-content a {
    font-size: 12px;
  }

  .login-page-button,
  .register-page-button {
    padding: 5px 10px;
    font-size: 12px;
  }

  .register-page-button {
    margin-right: 5px;
  }

  main {
    margin-top: 55px;
    min-height: calc(100vh - 55px);
  }

  .main-content {
    gap: 30px;
    padding: 20px 10px;
  }

  .main-left-side .span-box {
    width: 95%;
  }

  .main-left-side span {
    font-size: 32px;
  }

  .visit-button {
    width: 220px;
    height: 55px;
    margin: 15px auto;
  }

  .visit-button span {
    font-size: 18px;
  }

  .form-box {
    width: 95%;
    max-width: 350px;
    padding: 25px 20px 20px 20px;
    border-radius: 25px;
  }

  .form-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .form-title img {
    height: 50px;
  }

  .form-box label {
    font-size: 12px;
  }

  .form-box input.insert {
    height: 42px;
    font-size: 13px;
    margin-bottom: 15px;
  }

  .form-box .submit-button,
  .form-box input.submit-button,
  .form-box button.submit-button {
    height: 48px;
    font-size: 15px;
  }

  .terms {
    font-size: 9px;
  }

  .redirect {
    font-size: 12px;
  }

  /* Popups responsivos */
  .success-popup {
    padding: 30px 20px;
    width: 95%;
  }

  .success-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .success-popup h2 {
    font-size: 24px;
  }

  .success-popup p {
    font-size: 14px;
  }

  .toast {
    max-width: 90%;
    bottom: 15px;
    right: 15px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Celulares muito pequenos */
@media screen and (max-width: 360px) {
  .header-logo img.logo-icon {
    height: 35px;
  }

  .header-logo img.logo-title {
    width: 85px;
  }

  .main-left-side span {
    font-size: 28px;
  }

  .visit-button {
    width: 200px;
    height: 50px;
  }

  .visit-button span {
    font-size: 16px;
  }

  .form-box {
    padding: 20px 15px;
  }

  .form-title {
    font-size: 22px;
  }

  .form-title img {
    height: 45px;
  }

  .form-box input.insert {
    height: 40px;
    font-size: 12px;
  }

  .form-box .submit-button,
  .form-box input.submit-button,
  .form-box button.submit-button {
    height: 45px;
    font-size: 14px;
  }
}