/* ==========================================================================
   Strona Logowania i Rejestracji
   ========================================================================== */

* {
  font-family: 'Montserrat', sans-serif;
}

/* Kontener centrujący całą zawartość */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Pełna wysokość widoku */
    background-color: var(--color-background-light);
    padding: 20px;
}

/* Komunikaty o błędach */
.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--color-danger);
    padding: 10px;
    border-radius: var(--border-radius-small);
    margin-bottom: 15px;
    border: 1px solid var(--color-danger);
    font-size: 0.9rem;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0D171E;
  opacity: 0.5;
  backdrop-filter: blur(5px);
  z-index: -1;
}

body {
  background-color: rgb(13, 23, 30);
  background-image: url('../img/backgroundfpm.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: 100vh;
  height: 100vh;
  margin: 0 auto;
  align-content: center;
}
  
.play-button {
  font-family: 'Montserrat', sans-serif;
  position: relative;    
  display: block;
  margin: 0 auto;
  padding: 15px 50px;
  font-size: 35px;
  width: 30%;
  font-weight: 900;
  line-height: 100%;
  border: 2px solid #F4AE27;
  background-color: rgb(13, 23, 30);
  color: rgb(255, 255, 255);
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.play-button:hover {
  background-color: #F4AE27;
  color: rgb(13, 23, 30);
  transform: scale(1.05);
}
  
.login-box {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 20px;
  justify-content: space-evenly;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding: 25px;
  border-radius: 10px;
  width: 350px;
  color: white;
  transition: all 0.3s;
  margin: 0 auto;
  margin-top: 10px;
  background-color: rgb(13 23 30 / 50%);
  backdrop-filter: blur(25px);
}
  
.login-box.show {
  opacity: 1;
  pointer-events: auto;
}

.footer {
  margin-top: 60px;
  color: white;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  box-sizing: border-box;             
  width: 100%;         
  background-color: rgb(13 23 30 / 50%);
  backdrop-filter: blur(25px);      
}

#form-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 10px;
}

.login-box.show {
  opacity: 1;
  pointer-events: all;
}

.login-box input {
  padding: 10px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  box-sizing: border-box;
  font-size: 14px;
  transition: all 0.3s;
}

.login-box input:focus {
  border: 1px solid #F4AE27;
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

#loginForm, #signupForm {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 15px;
}

#loginForm button, #signupForm button {
  width: 100%;
  margin-top: 20px;
  background-color: rgb(13, 23, 30);
  border: 2px solid #F4AE27;
  color: white;
  font-weight: 900;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  padding: 10px 0;
  text-align: center;
  font-size: 20px;
}

#loginForm button:hover, #signupForm button:hover {
  background-color: #F4AE27;
  color: rgb(13, 23, 30);
  box-shadow: 0px 0px 10px #F4AE27;
}

.input-group {
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: white;
  width: 100%;
}

.input-group span {
  font-size: 16px;
  margin-right: 15px;
}

.logo {
  width: 400px;
  max-width: 80%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
   
.footer-right a {
  margin-left: 15px;
  font-size: 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s;
}

.footer-right a:hover {
  transform: scale(1.2);
}

.notification {
  position: fixed;
  top: 20px;
  right: -300px;
  background-color: #ff4b4b;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 9999;
  font-family: 'Montserrat', sans-serif;
}

.notification.show {
  right: 20px;
  opacity: 1;
}

.notification.success {
  background-color: #4caf50;
}

.notification.error {
  background-color: #ff4b4b;
}


.login-box .tabs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  gap: 5%;
}

.login-box .tabs div {
  width: 47.5%;
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  background-color: rgb(13, 23, 30);
  border: 2px solid #F4AE27;
  color: #F4AE27;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s;
  opacity: 0.5;
}

.login-box .tabs div:hover {
  background-color: #F4AE27;
  color: rgb(13, 23, 30);
  transform: scale(1.05);
  opacity: 1;
}

.login-box .tabs .active {
  background-color: #F4AE27;
  color: rgb(13, 23, 30);
  transform: scale(1.05);
  opacity: 1;
}

.discord-login {
  border-radius: 10px;
  padding: 10px 0;
  width: 100%;
  text-align: center;
  background-color: rgb(13, 23, 30);
  border: 2px solid #5865F2;
  cursor: pointer;
  transition: all 0.3s;
}

.discord-btn {
  padding: 10px 0;
  font-weight: 900;
  text-decoration: none;
  color: white;
}

.discord-login:hover {
  background-color: #5865F2;
  color: rgb(13, 23, 30);
  box-shadow: 0px 0px 10px #5865F2;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  .play-button {
    width: 80%;
  }
}

.content-section {
  width: 50%;
  margin: 0 auto;
}

.home-content {
  padding: 20px;
  color: white;
  border-radius: 10px;
  background-color: rgb(13 23 30 / 50%);
  backdrop-filter: blur(25px);
}

@media (max-width: 768px) {
  .content-section {
    width: 95%;
  }
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: rgb(13 23 30 / 50%);
  backdrop-filter: blur(25px);
  padding: 30px 60px;
  border-radius: 10px;
  text-align: center;
}

.info-box h2, .info-box p {
  margin: 0;
}
  
.rankings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.ranking-box {
  text-align: center;
  margin: 20px auto;
}

.ranking-box h3 {
  text-align: center;
  margin-bottom: 15px;
}

.ranking-list,
.club-ranking-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  width: 320px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.ranking-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.ranking-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.player-info,
.club-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 50px;
}

.skills {
  margin-top: 3px;
  font-weight: bold;
  font-size: 12px;
  color: #ccc;
  white-space: nowrap;
}

.top-1 {
  border-color: gold;
}

.top-2 {
  border-color: silver;
}

.top-3 {
  border-color: #cd7f32; 
}

@media (max-width: 768px) {
    .rankings {
        flex-direction: column;
        align-items: center;
    }
}