@import url('https://fonts.googleapis.com/css?family=Montserrat:600|Noto+Sans|Open+Sans:400,700&display=swap');
*{
  margin: 0;
  padding: 0;
  border-radius: 5px;
  box-sizing: border-box;
}
body{
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  font-family: sans-serif;
  justify-content: center;
  background: url(/theme/default/img/bg.jpg);
  background-size: cover;
  background-position: center;
}
.container{
  position: relative;
  width: 400px;
  background: white;
  padding: 60px 40px;
}
header{
  font-size: 40px;
  margin-bottom: 60px;
  font-family: 'Montserrat', sans-serif;
}
.input-field, form .button{
  margin: 25px 0;
  position: relative;
  height: 50px;
  width: 100%;
}
.input-field input{
  height: 100%;
  width: 100%;
  border: 1px solid silver;
  padding-left: 15px;
  outline: none;
  font-size: 19px;
  transition: .4s;
}
input:focus{
  border: 1px solid #1DA1F2;
}
.input-field label, span.show{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.input-field label{
  left: 15px;
  pointer-events: none;
  color: grey;
  font-size: 18px;
  transition: .4s;
}
span.show{
  right: 20px;
  color: #111;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  visibility: hidden;
  font-family: 'Open Sans', sans-serif;
}
input:valid ~ span.show{
  visibility: visible;
}
input:focus ~ label,
input:valid ~ label{
  transform: translateY(-33px);
  background: white;
  font-size: 16px;
  color: #1DA1F2;
}
form .button{
  margin-top: 30px;
  overflow: hidden;
  z-index: 111;
}
.button .inner{
  position: absolute;
  height: 100%;
  width: 300%;
  left: -100%;
  z-index: -1;
  transition: all .4s;
  background: -webkit-linear-gradient(right,#00dbde,#fc00ff,#00dbde,#fc00ff);
}
.button:hover .inner{
  left: 0;
}
.button button{
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  outline: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.container .auth{
  margin: 35px 0 20px 0;
  font-size: 19px;
  color: grey;
}
.links{
  display: flex;
  cursor: pointer;
}
.facebook, .google{
  height: 40px;
  width: 100%;
  border: 1px solid silver;
  border-radius: 3px;
  margin: 0 10px;
  transition: .4s;
}
.facebook:hover{
  border: 1px solid #4267B2;
}
.google:hover{
  border: 1px solid #dd4b39;
}
.facebook i, .facebook span{
  color: #4267B2;
}
.google i, .google span{
  color: #dd4b39;
}
.links i{
  font-size: 23px;
  line-height: 40px;
  margin-left: -90px;
}
.links span{
  position: absolute;
  font-size: 17px;
  font-weight: bold;
  padding-left: 8px;
  font-family: 'Open Sans', sans-serif;
}
.signup{
  margin-top: 50px;
  font-family: 'Noto Sans', sans-serif;
}
.signup a{
  color: #3498db;
  text-decoration: none;
}
.signup a:hover{
  text-decoration: underline;
}
    .login-logo { display: block; margin: 0 auto 10px; max-height: 80px; }
    .login-header { font-size: 20px; margin-top: 10px; margin-bottom: 20px; text-align: center; font-weight: 600; }
    .options-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; padding: 0 5px; }
    .remember-me { display: flex; align-items: center; gap: 6px; color: #333; }
    .forgot-pass { color: #1DA1F2; text-decoration: none; }
    .forgot-pass:hover { text-decoration: underline; }

    .modal { position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
    .modal-content { background-color: #fff; margin: 10% auto; padding: 20px; border-radius: 10px; width: 90%; max-width: 600px; }
    .close { color: #aaa; float: right; font-size: 28px; cursor: pointer; }
    .close:hover { color: #000; }

    .accordion-btn { background-color: #f1f1f1; color: #333; cursor: pointer; padding: 12px; width: 100%; border: none; text-align: left; font-weight: bold; outline: none; transition: 0.4s; margin-top: 5px; border-radius: 4px; }
    .accordion-btn:hover { background-color: #e2e2e2; }
    .accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease-out; background-color: #fafafa; border-left: 2px solid #1DA1F2; padding: 0 15px; margin-bottom: 5px; }
    .accordion-panel.open { padding: 10px 15px; max-height: 300px; }

    @media (max-width: 576px) {
      .login100-form { padding-left: 15px !important; padding-right: 15px !important; }
      .options-row { flex-direction: column; align-items: flex-start; gap: 10px; }
      .modal-content { width: 95% !important; margin-top: 25% !important; padding: 15px !important; }
      .login-header { font-size: 18px; }
      .input-field input { font-size: 14px; }
    }

    .telegram-wrapper {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 999;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .telegram-tooltip {
      background-color: #333;
      color: #fff;
      padding: 6px 10px;
      font-size: 13px;
      border-radius: 6px;
      margin-bottom: 8px;
      white-space: nowrap;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      pointer-events: none;
    }

    .telegram-wrapper:hover .telegram-tooltip,
    .telegram-wrapper.show-on-load .telegram-tooltip {
      opacity: 1;
      transform: translateY(0);
    }

    .telegram-float {
      width: 60px;
      height: 60px;
      background-color: #ffffff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      transition: transform 0.3s;
    }

    .telegram-float:hover { transform: scale(1.1); }
    .telegram-img { width: 30px; height: 30px; object-fit: contain; }