.ax-auth-page {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  font-family: Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

.ax-auth-page *,
.ax-auth-page *::before,
.ax-auth-page *::after {
  box-sizing: border-box;
}

.ax-auth-page .auth-container {
  width: min(100%, 400px);
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.ax-auth-page .auth-icon {
  margin-bottom: 20px;
  color: #3b82f6;
  font-size: 64px;
  line-height: 1;
}

.ax-auth-page .auth-title {
  margin: 0 0 20px;
  color: #1e40af;
  font-size: 24px;
  line-height: 1.3;
}

.ax-auth-page .auth-message {
  margin: 0 0 30px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.ax-auth-page .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.ax-auth-page .form-label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
}

.ax-auth-page .form-input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 4px;
}

.ax-auth-page .error-message {
  margin-bottom: 20px;
  color: #dc2626;
  font-size: 14px;
  line-height: 1.5;
}

.ax-auth-page .auth-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
}

.ax-auth-page .auth-btn:hover {
  background-color: #2563eb;
}

.ax-auth-page .ax-restricted-contact-wrap {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .ax-auth-page {
    padding: 16px;
  }

  .ax-auth-page .auth-container {
    width: 100%;
    padding: 28px 20px 24px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  }

  .ax-auth-page .auth-icon {
    margin-bottom: 16px;
    font-size: 52px;
  }

  .ax-auth-page .auth-title {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .ax-auth-page .auth-message {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
  }

  .ax-auth-page .form-group,
  .ax-auth-page .error-message {
    margin-bottom: 16px;
  }

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

  .ax-auth-page .form-input,
  .ax-auth-page .auth-btn {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .ax-auth-page {
    padding: 12px;
  }

  .ax-auth-page .auth-container {
    padding: 24px 16px 20px;
    border-radius: 14px;
  }

  .ax-auth-page .auth-icon {
    font-size: 44px;
  }

  .ax-auth-page .auth-title {
    font-size: 20px;
  }

  .ax-auth-page .auth-message {
    font-size: 14px;
  }

  .ax-auth-page .form-input {
    letter-spacing: 2px;
  }
}
