@font-face {
  font-family: "HeroArcher";
  src: url("../../fonts/Heroarcherfreeversion-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "HeroArcher";
  background-color: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  animation: fadeIn 1.2s ease-in;
}

.background-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.back-home-btn {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 200;
  display: inline-block;
}

.back-home-img {
  width: 230px;
  height: auto;
  display: block;
  cursor: pointer;
  filter: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.back-home-img:hover {
  transform: translateX(-5px);
  filter: drop-shadow(0 0 18px rgba(255, 80, 50, 0.7));
}

.back-home-img:active {
  transform: translateX(-2px) scale(0.98);
}

.main-container {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 1200px;
  min-width: 800px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideIn 0.9s ease-out;
}

.panel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 700;
  max-height: 90vh;
}

.panel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.login-section {
  position: absolute;
  right: 15.5%;
  top: 50%;
  transform: translateY(-50%);
  width: 32%;
  max-width: 32%;
  z-index: 3;
  padding: 0 2%;
  animation: fadeInUp 1.1s ease-out 0.3s both;
}

.login-title {
  width: 65%;
  max-width: 65%;
  height: auto;
  display: block;
  margin: 0 auto 6% auto;
  filter: drop-shadow(0 0 8px rgba(197, 43, 7, 0.45))
    drop-shadow(0 0 12px rgba(180, 20, 10, 0.3));
  animation: glowRed 2.5s ease-in-out infinite alternate;
}

.form-label {
  background: linear-gradient(180deg, #ffa517 0%, #ff5317 50%, #4f1103 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(10px, 1vw, 14px);
  font-weight: bold;
  letter-spacing: 0.12vw;
  text-transform: uppercase;
  margin-bottom: 1.8%;
  display: block;
  font-family: Arial, sans-serif;
  text-align: left;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(197, 43, 7, 0.55));
}

.form-label:hover {
  filter: drop-shadow(0 0 12px rgba(197, 43, 7, 0.7))
    drop-shadow(0 0 15px rgba(180, 20, 10, 0.5));
}

.input-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 9.5%;
  margin-bottom: 4.5%;
}

.input-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
  transition: filter 0.4s ease;
}

.input-wrapper:hover .input-background {
  filter: drop-shadow(0 0 6px rgba(197, 43, 7, 0.3))
    drop-shadow(0 0 10px rgba(180, 20, 10, 0.2));
}

.input-field {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: #cdcdcd;
  padding: 0 4%;
  font-size: clamp(10px, 0.88vw, 13px);
  font-family: Arial, sans-serif;
  letter-spacing: 0.05vw;
  transition: color 0.3s ease;
}

.input-field:focus {
  outline: none;
  color: #ffffff;
}

.input-field::placeholder {
  color: #4a4a4a;
  text-transform: uppercase;
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.08vw;
  transition: color 0.3s ease;
}

.input-field:focus::placeholder {
  color: #666666;
}

.forgot-password {
  color: #cdcdcd;
  font-size: clamp(8px, 0.65vw, 10px);
  letter-spacing: 0.08vw;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 5%;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  background: linear-gradient(180deg, #ffa517 0%, #ff5317 50%, #4f1103 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(197, 43, 7, 0.5))
    drop-shadow(0 0 12px rgba(180, 20, 10, 0.3));
}

.social-login-text {
  background: linear-gradient(180deg, #ffa517 0%, #ff5317 50%, #4f1103 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: bold;
  letter-spacing: 0.1vw;
  text-align: center;
  margin-bottom: 3.5%;
  font-family: Arial, sans-serif;
  filter: drop-shadow(0 0 8px rgba(197, 43, 7, 0.4));
}

.social-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  margin-bottom: 5.5%;
}

.social-btn {
  width: 15%;
  aspect-ratio: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s ease;
  animation: float 3.5s ease-in-out infinite;
  display: inline-block;
  text-decoration: none;
}

.social-btn:first-child {
  animation-delay: 0s;
}

.social-btn:last-child {
  animation-delay: 0.7s;
}

.social-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-6px) scale(1.15);
  filter: drop-shadow(0 8px 15px rgba(197, 43, 7, 0.5))
    drop-shadow(0 4px 10px rgba(180, 20, 10, 0.4));
}

.social-btn:active {
  transform: translateY(-2px) scale(1.1);
}

.signin-button-wrapper {
  width: 100%;
  margin-bottom: 4%;
  cursor: pointer;
  transition: all 0.35s ease;
  animation: pulseRed 2.5s ease-in-out infinite;
}

.signin-button-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.signin-button-wrapper:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 16px rgba(197, 43, 7, 0.6))
    drop-shadow(0 4px 12px rgba(180, 20, 10, 0.5));
  animation: none;
}

.signin-button-wrapper:active {
  transform: translateY(-1px) scale(0.98);
  filter: drop-shadow(0 5px 10px rgba(197, 43, 7, 0.5));
}

.signup-text {
  text-align: center;
  font-size: clamp(9px, 0.7vw, 11px);
  letter-spacing: 0.07vw;
  font-family: Arial, sans-serif;
}

.signup-text-normal {
  color: #cdcdcd;
  text-transform: uppercase;
}

.signup-text-link {
  background: linear-gradient(180deg, #ffa517 0%, #ff5317 50%, #4f1103 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(197, 43, 7, 0.5));
}

.signup-text-link:hover {
  filter: drop-shadow(0 0 12px rgba(197, 43, 7, 0.7))
    drop-shadow(0 0 15px rgba(180, 20, 10, 0.5));
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-40%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes glowRed {
  from {
    filter: drop-shadow(0 0 8px rgba(197, 43, 7, 0.45))
      drop-shadow(0 0 12px rgba(180, 20, 10, 0.3));
  }
  to {
    filter: drop-shadow(0 0 12px rgba(197, 43, 7, 0.6))
      drop-shadow(0 0 18px rgba(180, 20, 10, 0.45))
      drop-shadow(0 0 22px rgba(150, 10, 5, 0.25));
  }
}

@keyframes pulseRed {
  0%,
  100% {
    filter: drop-shadow(0 4px 10px rgba(197, 43, 7, 0.35))
      drop-shadow(0 2px 6px rgba(180, 20, 10, 0.3));
  }
  50% {
    filter: drop-shadow(0 6px 14px rgba(197, 43, 7, 0.5))
      drop-shadow(0 3px 10px rgba(180, 20, 10, 0.4));
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 1400px) {
  .main-container {
    width: 92vw;
  }

  .login-section {
    right: 15.5%;
    width: 33%;
  }
}

@media (max-width: 1200px) {
  .main-container {
    width: 95vw;
    min-width: 700px;
  }

  .login-section {
    right: 15.5%;
    width: 34%;
  }

  .form-label {
    font-size: 1.1vw;
  }

  .input-field {
    font-size: 0.95vw;
  }

  .input-field::placeholder {
    font-size: 0.7vw;
  }

  .back-home-btn {
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .main-container {
    min-width: 600px;
  }

  .login-section {
    right: 15.5%;
    width: 35%;
  }

  .form-label {
    font-size: 1.25vw;
  }

  .input-field {
    font-size: 1.1vw;
  }

  .input-field::placeholder {
    font-size: 0.8vw;
  }

  .forgot-password {
    font-size: 0.75vw;
  }

  .social-login-text {
    font-size: 0.95vw;
  }

  .signup-text {
    font-size: 0.85vw;
  }

  .back-home-btn {
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .main-container {
    min-width: 500px;
  }

  .login-section {
    right: 15.5%;
    width: 36%;
  }

  .back-home-btn {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    font-size: 10px;
  }
}

@media (min-width: 1600px) {
  .main-container {
    max-width: 1300px;
  }

  .form-label {
    font-size: 14px;
  }

  .input-field {
    font-size: 13px;
  }

  .input-field::placeholder {
    font-size: 10px;
  }

  .forgot-password {
    font-size: 10px;
  }

  .social-login-text {
    font-size: 12px;
  }

  .signup-text {
    font-size: 11px;
  }
}

@media (min-aspect-ratio: 16/9) and (max-height: 800px) {
  .main-container {
    max-height: 85vh;
  }

  .panel-container {
    max-height: 85vh;
  }

  .login-section {
    padding: 0 1.5%;
  }

  .input-wrapper {
    margin-bottom: 3.5%;
  }

  .login-title {
    margin-bottom: 6%;
  }

  .signin-button-wrapper {
    margin-bottom: 3%;
  }
}

@media (min-aspect-ratio: 16/9) and (max-height: 700px) {
  .main-container {
    max-height: 80vh;
  }

  .panel-container {
    max-height: 80vh;
  }

  .login-section {
    padding: 0 1%;
  }

  .input-wrapper {
    margin-bottom: 3%;
  }

  .login-title {
    margin-bottom: 5%;
  }

  .signin-button-wrapper {
    margin-bottom: 2.5%;
  }
}

@media (min-aspect-ratio: 21/9) and (max-height: 600px) {
  .main-container {
    max-height: 75vh;
  }

  .panel-container {
    max-height: 75vh;
  }

  .login-section {
    padding: 0 0.5%;
  }

  .input-wrapper {
    margin-bottom: 2.5%;
  }

  .login-title {
    margin-bottom: 4%;
  }

  .signin-button-wrapper {
    margin-bottom: 2%;
  }

  .social-buttons {
    margin-bottom: 4%;
  }
}
