html {
  font-size: 16px; /* domyślna baza rem */
}

@media (min-width: 1920px) and (max-width: 1920px) {
  html {
    font-size: 12px;
  }
}
@media (min-width: 3840px) and (max-width: 3840px) {
  html {
    font-size: 24px;
  }
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  height: 100dvh;
  position: relative; /* Dodaj to dla poprawnego pozycjonowania wideo */
  overflow: hidden; /* Zapobiega pojawianiu się scrolla */
}
#video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Działa podobnie jak background-size: cover */
  z-index: -1; /* Umieszcza wideo za treścią */
}
.content {
  display: flex;
  width: 80rem;
  height: 64rem;
  padding: 0 12rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  background-color: #050505;
  border-radius: 1rem;

  box-shadow:
    inset 0 0 0 0.125rem rgba(255, 255, 255, 0.2),
    inset 0 0 0 0.25rem rgba(0, 0, 0, 0.6),
    0 0 0 0.0625rem #3a3a3a,
    0 0 0 0.125rem #2a2a2a,
    0 0 0 0.25rem #1a1a1a,
    0 0 0 0.375rem #0a0a0a,
    0 30px 60px -15px rgba(0, 0, 0, 0.9),
    0 60px 120px -30px rgba(0, 0, 0, 0.7),
    0 0 120px -20px rgba(201, 12, 11, 0.4),
    0 0 200px -40px rgba(201, 12, 11, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;

  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.2s ease-out;
  position: relative;
}
.content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(126deg, #FFF -900%, rgba(0, 0, 0, 0.00) 50%);
  z-index: 3;
  pointer-events: none;
  transform: translateZ(20px); /* Dodaj głębię */
}
.content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/NSX.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  filter: grayscale(100%) blur(2px);
  z-index: -2;
  pointer-events: none;
}
/* Parallax hover effect */
.content:hover {
  transform: 
    rotateY(calc(var(--mouse-x) * 5deg)) 
    rotateX(calc(var(--mouse-y) * -5deg));
}

.content .hover-light {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: brightness(0.8);
}

.content:hover .hover-light {
  opacity: 0.7;
}
.red-banner {
  display: flex;
  width: 25rem;           /* 400px / 16 */
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  align-self: stretch;
  background: linear-gradient(180deg, #68090A 0%, rgba(15, 5, 6, 1) 100%);
}
/* Depth effect for inner elements */
.red-banner, .right {
  transition: transform 0.4s ease;
}

.logo-container {
  transition: transform 0.5s ease;
}

.content:hover .logo-container {
  transform: translateZ(50px);
}
/* Cień 3D */


/* Efekt głębi dla chevronów */
.chevrons-container {
  transition: transform 0.3s ease;
}

.content:hover .chevrons-container {
  transform: translateZ(10px);
}
.banner-container {
  display: flex;
  flex-direction: row;
  height: 100%;
}
.gradient {
  width: 0.25rem;         /* 4px / 16 */
  height: 100%;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.glow {
  position: absolute;
  width: 100%;
  height: 12.5rem;        /* 200px / 16 */
  background: radial-gradient(circle, #f80000 0%, rgba(248, 0, 0, 0) 80%);
  animation: moveDown 2s linear infinite;
}
.chevrons-container{
  width: 256px;
  height: 300px;
  position: relative;
  background: transparent;
  overflow: hidden;
}
.register-container{
  max-width: 400px;
}
.chevrons {
  display: flex;
  padding: 0 4rem 4rem 4rem;  /* 0 64px 64px 64px / 16 */
  flex-direction: column;
  align-items: center;
  animation: moveDownChevrons 2s linear infinite;
  position: absolute;
}
.chevrons img {
  margin-top: -1.25rem;       /* -20px / 16 */
}
@keyframes moveDown {
  0% {
    top: -12.5rem;        /* -200px / 16 */
  }
  100% {
    top: 100%;
  }
}
@keyframes moveDownChevrons {
  0% {
    top: -59px;        
  }
  100% {
    top: 0px;
  }
}
.right {
  display: flex;
  padding: 4rem 0;        /* 64px / 16 */
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4rem;              /* 64px / 16 */
  flex-shrink: 0;
  align-self: stretch;
}

.logo-and-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;                  /* 64px / 16 */
  align-self: stretch;
}

.logo-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.logo {
  width: 36.625rem;            /* 586px / 16 */
  height: 9.923375rem;         /* 158.774px / 16 */
  aspect-ratio: 586.00 / 158.77;
  z-index: 2;
}
h1 {
  color: #DDD;
  text-align: center;
  font-size: 2rem;             /* 32px / 16 */
  font-style: normal;
  font-weight: 400;
  line-height: 3rem;           /* 48px / 16 */
  margin: 0;
}

form {
  display: flex;
  gap: 1rem;                  /* 16px / 16 */
  flex-direction: column;
  text-align: center;
}
.login-container form {
  width: 22.5rem;              /* 360px / 16 */
}

.login-container input,
.register-container input[type="text"],
.register-container input[type="password"],
.register-container input[type="number"] {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #777;
  padding: 1rem;               /* 16px / 16 */
  border-radius: 0.25rem;      /* 4px / 16 */
  border: 1px solid #444;
  background: rgba(0, 0, 0, 0.20);
  font-size: 1.5rem;           /* 24px / 16 */
  line-height: 1.75rem;        /* 28px / 16 */
  backdrop-filter: blur(16px);
}

.login-container input:focus,
.register-container input:focus {
  outline: 0.125rem solid #68090A;   /* 2px / 16 */
  border: 0.0625rem solid #68090A;   /* 1px / 16 */
  color: #C90C0B;
}

.login-container input:not(:placeholder-shown),
.register-container input:not(:placeholder-shown) {
  color: #C90C0B;
}

.login-container button,
.register-container button {
  font-family: "Audiowide", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 1rem;                  /* 16px / 16 */
  background: linear-gradient(270deg, rgba(104, 9, 10, 0.40) 0%, rgba(201, 12, 11, 0.40) 100%);
  color: #fff;
  text-align: center;
  font-size: 2rem;               /* 32px / 16 */
  line-height: 2rem;             /* 32px / 16 */
  box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.50); /* 4px = 0.25rem */
  border-radius: 0.25rem;        /* 4px / 16 */
  border: 0.125rem solid #68090A;/* 2px / 16 */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover,
.register-container button:hover {
  background-color: hsla(0, 90%, 42%, 0.5);
}

.success-message {
  color: green;
  margin-bottom: 0.9375rem;      /* 15px / 16 */
  font-weight: bold;
}

.error-message {
  color: red;
  margin-bottom: 0.9375rem;      /* 15px / 16 */
  font-weight: bold;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Kontener dla toggle switch */
.toggle-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #393939;
  backdrop-filter: blur(10px);
}

/* Etykieta */
.toggle-label {
  color: #DDD;
  font-family: "Audiowide", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  user-select: none;
  white-space: nowrap;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 60px;
  height: 30px;
  background: #333;
  border-radius: 15px;
  cursor: pointer;
  border: 2px solid #555;
  transition: all 0.3s ease;
  overflow: hidden;
}

.toggle-switch::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #666;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Stan włączony */
.toggle-switch.active {
  background: linear-gradient(90deg, #68090A, #C90C0B);
  border-color: #C90C0B;
  box-shadow: 0 0 15px rgba(201, 12, 11, 0.4);
}

.toggle-switch.active::before {
  left: 33px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Hover effect */
.toggle-switch:hover {
  border-color: #777;
}

.toggle-switch.active:hover {
  border-color: #ff1a1a;
  box-shadow: 0 0 20px rgba(201, 12, 11, 0.6);
}

/* Animacja świecenia */
.toggle-switch.active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(201, 12, 11, 0.3), transparent);
  border-radius: 17px;
  z-index: -1;
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}
.content.no-3d {
  transform: none !important;
}


.content.no-3d .red-banner,
.content.no-3d .right,
.content.no-3d .logo-container,
.content.no-3d .chevrons-container {
  transform: none !important;
}
.discord-info {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
}

.discord-text {
    color: #DDD;
    font-size: 1.2rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    margin-bottom: 1.5rem;
    max-width: 100%;
    text-shadow: 0 0 8px rgba(201, 12, 11, 0.3);
}

.discord-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: linear-gradient(270deg, rgba(104, 9, 10, 0.4) 0%, rgba(201, 12, 11, 0.4) 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: "Audiowide", sans-serif;
    transition: all 0.3s ease;
    border: 2px solid #68090A;
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: -webkit-fill-available;
}

.discord-button:hover {
    background: linear-gradient(270deg, rgba(104, 9, 10, 0.6) 0%, rgba(201, 12, 11, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 0.75rem 0 rgba(0, 0, 0, 0.3), 0 0 15px rgba(201, 12, 11, 0.4);
}

.discord-button:active {
    transform: translateY(0);
}

.server-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.discord-button:hover .server-icon {
    transform: scale(1.1);
}

/* Efekt świecenia */
.discord-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.discord-button:hover::after {
    opacity: 1;
    animation: serverGlow 2s linear infinite;
}

@keyframes serverGlow {
    0% { transform: rotate(45deg) translate(-30%, -30%); }
    100% { transform: rotate(45deg) translate(30%, 30%); }
}
.center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none; /* pozwala klikać przez logo */
}

.team-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(201, 12, 11, 0.7));
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Efekt hover dla całego contentu */
.content:hover .team-logo {
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(201, 12, 11, 0.9));
    transform: scale(1.05);
}