/* styles/auth.css */
/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: #1a1a1a;
  margin: 8% auto;
  padding: 2.5rem;
  border: 1px solid rgba(254, 175, 46, 0.3);
  width: 90%;
  max-width: 450px;
  position: relative;
  border-radius: 15px;
  animation: slideIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--white);
  transition: color 0.3s;
  line-height: 1;
}

.close-modal:hover {
  color: #feaf2e;
}

.auth-forms h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
}

.auth-forms form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  position: relative;
  margin-bottom: 0.3rem;
}

.input-group input {
  width: 100%;
  padding: 0.9rem;
  background: var(--black);
  border: 1px solid rgba(254, 175, 46, 0.2);
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  outline: none;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #feaf2e;
}

.input-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  pointer-events: none;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
  top: 0;
  font-size: 0.75rem;
  background: #1a1a1a;
  padding: 0 0.5rem;
  color: #feaf2e;
}

.auth-forms p {
  text-align: center;
  color: var(--gray);
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.auth-forms p a {
  color: #feaf2e;
  text-decoration: none;
  font-weight: 600;
}

.auth-forms p a:hover {
  text-decoration: underline;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-greeting {
  color: #feaf2e;
  font-weight: 500;
  font-size: 0.9rem;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 2rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 4000;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}
.notification-success {
  background: rgba(40, 167, 69, 0.9);
}
.notification-error {
  background: rgba(220, 53, 69, 0.9);
}

.btn-delete-comment {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
}

.btn-delete-comment:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(254, 175, 46, 0.3);
  background: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
  font-family: "Montserrat", sans-serif;
}

.page-btn.active {
  background: #feaf2e;
  color: var(--black);
  border-color: #feaf2e;
}
.page-btn:hover {
  border-color: #feaf2e;
  color: #feaf2e;
}
