/* Load Vazir font */
@font-face {
  font-family: 'Vazir';
  src: url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff2') format('woff2'),
    url('https://cdn.fontcdn.ir/Font/Persian/Vazir/Vazir.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset default styles for consistency */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  background: radial-gradient(circle at center, rgba(168, 6, 58, 0.3) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(142, 5, 48, 0.2) 100%);
  background-size: 200% 200%;
  animation: GradientFlow 12s ease-in-out infinite;
  font-family: 'Vazir', sans-serif !important;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05) 10px,
      transparent 10px,
      transparent 20px);
  opacity: 0.3;
  pointer-events: none;
}

@keyframes GradientFlow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Login container */
#login {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Form */
.login form {
  border: none;
  border-radius: 15px;
  padding: 20px;
  background: transparent;
}

/* Buttons */
.wp-core-ui .button-group.button-large .button,
.wp-core-ui .button.button-large {
  width: 100%;
  margin-top: 15px;
  background-color: #A8063A;
  color: #fff;
  padding: 12px 0;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.wp-core-ui .button-group.button-large .button:hover,
.wp-core-ui .button.button-large:hover {
  background-color: #8e0530;
  transform: translateY(-2px);
}

.wp-core-ui .button-primary {
  background: #4da28f;
  border: none;
  color: #fff;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.wp-core-ui .button-primary:hover {
  background: #3d8b7a;
  transform: translateY(-2px);
}

/* Labels */
.login label {
  display: block;
  color: #333;
  margin-bottom: 0.8em;
  font-weight: 600;
  font-size: 1rem;
}

/* Inputs */
.login form .input {
  width: 100%;
  padding: 12px;
  margin-bottom: 1.2em;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.login form .input:focus {
  outline: none;
  border-color: #4da28f;
  box-shadow: 0 0 5px rgba(77, 162, 143, 0.3);
}

/* Notice */
.login-footer-notice {
  text-align: center;
  margin: 0.5em 0;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
}

.login-footer-notice b {
  color: #A8063A;
  font-weight: 700;
}

/* Forgot password link */
.login #nav {
  text-align: center;
  margin: 0.5em 0 10px;
}

.login #nav a {
  color: #4da28f;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.login #nav a:hover {
  color: #3d8b7a;
}

/* Modal - glass effect */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.login-modal-content {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInModal 0.4s ease;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.login-modal-content p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
}

.telegram-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.telegram-link:hover {
  color: #A8063A;
}

.login-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-modal-close:hover {
  color: #A8063A;
}

/* Hide extras */
.language-switcher,
.login #backtoblog {
  display: none;
}

.login form .forgetmenot {
  display: flex;
  align-items: center;
  margin-bottom: 1.2em;
}

.login form .forgetmenot label {
  margin-left: 10px;
  margin-bottom: 0;
  font-weight: 500;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  #login {
    padding: 50px;
  }

  .login form {
    padding: 30px;
  }

  .login-footer-notice,
  .login #nav {
    font-size: 1rem;
  }

  .login-modal-content {
    padding: 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 767px) {
  #login {
    padding: 20px;
  }

  .login form {
    padding: 15px;
  }

  .wp-core-ui .button-group.button-large .button,
  .wp-core-ui .button.button-large {
    padding: 10px 0;
    font-size: 0.9rem;
  }

  .login label,
  .login form .input,
  .login-footer-notice,
  .login #nav {
    font-size: 0.85rem;
  }

  .login-modal-content {
    padding: 15px;
  }
}