/**
 * Password Reset Notifications Styles
 * Стили для уведомлений сброса пароля
 * 
 * @package App
 */

/* Password Reset Success Notification */
.password-reset-success {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
  position: relative;
  overflow: hidden;
}

.password-reset-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #16a34a;
  border-radius: 0 2px 2px 0;
}

.password-reset-success-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.password-reset-success-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.password-reset-success-content {
  flex: 1;
}

.password-reset-success-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: #15803d;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.password-reset-success-message {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #166534;
  margin: 0;
  line-height: 1.5;
}

/* Password Reset Error Notification */
.password-reset-error {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
  position: relative;
  overflow: hidden;
}

.password-reset-error::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #dc2626;
  border-radius: 0 2px 2px 0;
}

.password-reset-error-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.password-reset-error-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.password-reset-error-content {
  flex: 1;
}

.password-reset-error-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: #dc2626;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.password-reset-error-message {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #991b1b;
  margin: 0;
  line-height: 1.5;
}

/* Password Reset Info Notification */
.password-reset-info {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
}

.password-reset-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #2563eb;
  border-radius: 0 2px 2px 0;
}

.password-reset-info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.password-reset-info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.password-reset-info-content {
  flex: 1;
}

.password-reset-info-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: #1d4ed8;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.password-reset-info-message {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #1e40af;
  margin: 0;
  line-height: 1.5;
}

/* Password Reset Warning Notification */
.password-reset-warning {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  position: relative;
  overflow: hidden;
}

.password-reset-warning::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #d97706;
  border-radius: 0 2px 2px 0;
}

.password-reset-warning-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #d97706;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.password-reset-warning-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.password-reset-warning-content {
  flex: 1;
}

.password-reset-warning-title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  color: #b45309;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.password-reset-warning-message {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

/* Notification Animations */
@keyframes passwordResetSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes passwordResetPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes passwordResetShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.password-reset-success {
  animation: passwordResetSlideIn 0.4s ease-out;
}

.password-reset-error {
  animation: passwordResetShake 0.5s ease-in-out;
}

.password-reset-info {
  animation: passwordResetSlideIn 0.4s ease-out;
}

.password-reset-warning {
  animation: passwordResetPulse 0.6s ease-in-out;
}

/* Close Button for Notifications */
.password-reset-notification-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.password-reset-notification-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

.password-reset-notification-close::after {
  content: '×';
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .password-reset-success,
  .password-reset-error,
  .password-reset-info,
  .password-reset-warning {
    padding: 16px 20px;
    margin-bottom: 20px;
  }
  
  .password-reset-success-icon,
  .password-reset-error-icon,
  .password-reset-info-icon,
  .password-reset-warning-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  .password-reset-success-icon svg,
  .password-reset-error-icon svg,
  .password-reset-info-icon svg,
  .password-reset-warning-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .password-reset-success-title,
  .password-reset-error-title,
  .password-reset-info-title,
  .password-reset-warning-title {
    font-size: 16px;
  }
  
  .password-reset-success-message,
  .password-reset-error-message,
  .password-reset-info-message,
  .password-reset-warning-message {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .password-reset-success,
  .password-reset-error,
  .password-reset-info,
  .password-reset-warning {
    padding: 14px 16px;
    margin-bottom: 16px;
    flex-direction: column;
    text-align: center;
  }
  
  .password-reset-success-icon,
  .password-reset-error-icon,
  .password-reset-info-icon,
  .password-reset-warning-icon {
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .password-reset-notification-close {
    top: 8px;
    right: 8px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .password-reset-success {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #047857;
  }
  
  .password-reset-success-title {
    color: #6ee7b7;
  }
  
  .password-reset-success-message {
    color: #a7f3d0;
  }
  
  .password-reset-error {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-color: #dc2626;
  }
  
  .password-reset-error-title {
    color: #fca5a5;
  }
  
  .password-reset-error-message {
    color: #fecaca;
  }
  
  .password-reset-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-color: #2563eb;
  }
  
  .password-reset-info-title {
    color: #93c5fd;
  }
  
  .password-reset-info-message {
    color: #bfdbfe;
  }
  
  .password-reset-warning {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #d97706;
  }
  
  .password-reset-warning-title {
    color: #fbbf24;
  }
  
  .password-reset-warning-message {
    color: #fde68a;
  }
}
