/* recovery.css - Стили для страницы восстановления пароля */
:root {
  --bg-dark: #2A2A2A;
  --bg-darker: #1E1E1E;
  --bg-light: #3D3D3D;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --accent-primary: #7B62FE;
  --accent-secondary: #9D8BFF;
  --accent-tertiary: #6C5CE7;
  --error-color: #FF4D4D;
  --success-color: #00E676;
  --warning-color: #FFC107;
  --border-radius-small: 8px;
  --border-radius-medium: 16px;
  --border-radius-large: 24px;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --accent-glow: 0 0 15px rgba(123, 98, 254, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Rajdhani', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(123, 98, 254, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(123, 98, 254, 0.1) 0%, transparent 30%);
  background-attachment: fixed;
}

.recovery-container {
  background-color: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo img {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(123, 98, 254, 0.5));
  transition: var(--transition-medium);
}

.auth-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 15px rgba(123, 98, 254, 0.8));
}

.recovery-card {
  background-color: rgba(61, 61, 61, 0.8);
  border-radius: var(--border-radius-large);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), var(--accent-glow);
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(123, 98, 254, 0.3);
  transition: var(--transition-medium);
  backdrop-filter: blur(10px);
}

.recovery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(123, 98, 254, 0.7);
}

.recovery-header {
  text-align: center;
  margin-bottom: 2rem;
}

.recovery-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(123, 98, 254, 0.3);
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  from { text-shadow: 0 0 10px rgba(123, 98, 254, 0.3); }
  to { text-shadow: 0 0 20px rgba(123, 98, 254, 0.7); }
}

/* Индикатор шагов */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin: 0 auto 2.5rem;
  position: relative;
  max-width: 80%;
  padding: 0 1rem;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, rgba(123, 98, 254, 0.1) 100%);
    border-radius: 2px;
    z-index: 1;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 10%;
  height: 4px;
  background: var(--accent-primary);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(123, 98, 254, 0.5);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-darker);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.8rem;
  transition: var(--transition-medium);
  border: 2px solid var(--bg-darker);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.step.active .step-number {
  background: var(--bg-light);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(123, 98, 254, 0.3), 0 0 15px rgba(123, 98, 254, 0.3);
}

.step.completed .step-number {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(123, 98, 254, 0.5);
}

.step.completed .step-number::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.2rem;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  position: absolute;
  bottom: -2rem;
  white-space: nowrap;
  transition: var(--transition-medium);
  background: rgba(61, 61, 61, 0.8);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(123, 98, 254, 0.1);
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(123, 98, 254, 0.2);
  border-color: rgba(123, 98, 254, 0.3);
}

/* Форма */
.form-group {
  margin-bottom: 1.8rem;
  transition: var(--transition-fast);
}

.form-group:hover {
  transform: translateY(-2px);
}

.form-label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--bg-darker);
  border: 1px solid rgba(123, 98, 254, 0.3);
  border-radius: var(--border-radius-medium);
  font-size: 1rem;
  transition: var(--transition-fast);
  color: var(--text-primary);
  backdrop-filter: blur(5px);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(123, 98, 254, 0.3);
  outline: none;
}

.form-input textarea {
  min-height: 100px;
  resize: vertical;
}

.form-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Кнопки */
.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 120px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--accent-secondary), var(--accent-tertiary));
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(123, 98, 254, 0.9);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(123, 98, 254, 0.3);
}

.btn-outline:hover {
  background: rgba(123, 98, 254, 0.2);
  color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(123, 98, 254, 0.3);
  border-color: var(--accent-primary);
}

.btn-recovery {
  width: 100%;
  margin-top: 1rem;
}

.btn-logout {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Статус информация */
.status-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(123, 98, 254, 0.1);
  border-radius: var(--border-radius-medium);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(123, 98, 254, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease;
}

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: var(--warning-color);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-approved {
  background: rgba(0, 230, 118, 0.2);
  color: var(--success-color);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.status-rejected {
    background: rgba(255, 77, 77, 0.2);
    color: var(--error-color);
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Детали заявки */
.request-details {
  background: rgba(123, 98, 254, 0.1);
  border-radius: var(--border-radius-medium);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(123, 98, 254, 0.2);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease;
  backdrop-filter: blur(5px);
}

.detail-item {
  display: flex;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed rgba(123, 98, 254, 0.2);
}

.detail-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--accent-primary);
  width: 200px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text-primary);
  word-break: break-word;
  flex: 1;
}

.detail-value.status-pending {
  color: var(--warning-color);
  font-weight: 600;
}

.detail-value.status-approved {
  color: var(--success-color);
  font-weight: 600;
}

.detail-value.status-rejected {
  color: var(--error-color);
  font-weight: 600;
}

.admin-comment {
  background: rgba(61, 61, 61, 0.5);
  padding: 15px;
  border-radius: var(--border-radius-small);
  margin-top: 5px;
  border-left: 3px solid var(--accent-primary);
}

/* Уведомления */
.alert {
  padding: 1.2rem 1.5rem;
  border-radius: var(--border-radius-medium);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease;
  backdrop-filter: blur(5px);
}

.alert-success {
  background: rgba(0, 230, 118, 0.1);
  border-left: 4px solid var(--success-color);
  color: var(--success-color);
}

.alert-error {
  background: rgba(255, 77, 77, 0.1);
  border-left: 4px solid var(--error-color);
  color: var(--error-color);
}

.alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--warning-color);
  color: var(--warning-color);
}

.alert ul {
  margin: 0;
  padding-left: 1.5rem;
}

.alert li {
  margin-bottom: 0.5rem;
}

.alert li:last-child {
  margin-bottom: 0;
}

.success-checkmark {
  color: var(--success-color);
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
  animation: bounceIn 0.6s ease;
}

/* Футер */
.recovery-footer {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.recovery-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
  position: relative;
}

.recovery-link:hover {
  color: var(--accent-secondary);
  text-decoration: none;
}

.recovery-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: var(--transition-fast);
  transform-origin: right;
}

.recovery-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Вспомогательные классы */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

.slide-up {
  animation: fadeInUp 0.5s ease;
}

.extra-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

.timestamp {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.divider {
  height: 1px;
  background: rgba(123, 98, 254, 0.2);
  margin: 1.5rem 0;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
  .recovery-card {
    padding: 2rem;
  }
  
  .recovery-title {
    font-size: 1.8rem;
  }
  
  .step-label {
    font-size: 0.75rem;
    bottom: -1.8rem;
    padding: 0.2rem 0.5rem;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
  }
  
  .request-details {
    padding: 1.5rem;
  }
  
  .detail-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .detail-label {
    width: auto;
  }
  
  .status-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .recovery-container {
    padding: 1rem;
  }
  
  .recovery-card {
    padding: 1.5rem;
  }
  
  .step-indicator {
    margin-bottom: 2rem;
  }
  
  .step-label {
    display: none;
  }
  
  .btn {
    width: 100%;
  }
  
  .status-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .recovery-container {
    padding: 0.5rem;
  }
  
  .recovery-card {
    padding: 1rem;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .request-details {
    padding: 1rem;
  }
  
  .detail-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
}