/* Основни стилове за страниците за автентикация */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a0ca3;
  --danger-color: #e63946;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.auth-page {
  background-color: #f5f7fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container {
  width: 100%;
  max-width: 500px;
}

.auth-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #6c757d;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
}

.form-hint {
  color: #6c757d;
  font-size: 0.8rem;
}

.optional {
  color: #6c757d;
  font-size: 0.8rem;
  font-weight: normal;
}

.form-actions {
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-block {
  width: 100%;
  display: block;
}

.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.alert-danger {
  background-color: #f8d7da;
  color: var(--danger-color);
  border: 1px solid #f5c6cb;
}

.alert ul {
  margin: 0;
  padding-left: 1.5rem;
}

.auth-footer {
  text-align: center;
  margin-top: 2rem;
  color: #6c757d;
}

.auth-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Респонсив дизайн */
@media (max-width: 576px) {
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-header h1 {
    font-size: 1.5rem;
  }
}

/* Допълнителни стилове за страницата за вход */
.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  margin-bottom: 1.5rem;
}

.form-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.text-small {
  font-size: 0.8rem;
  color: #6c757d;
  text-decoration: none;
}

.text-small:hover {
  text-decoration: underline;
  color: var(--primary-color);
}


/* регистерт  */

    .auth-container {
      max-width: 480px;
      margin: 2rem auto;
      padding: 2.5rem;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    }
    .auth-header {
      text-align: center;
      margin-bottom: 2rem;
    }
    .auth-title {
      font-size: 1.75rem;
      color: #333;
      margin-bottom: 0.5rem;
    }
    .auth-subtitle {
      color: #666;
      font-size: 1rem;
      margin-top: 0;
    }
    .auth-form .form-group {
      margin-bottom: 1.25rem;
    }
    .auth-form label {
      display: block;
      margin-bottom: 0.5rem;
      color: #444;
      font-weight: 500;
    }
    .auth-form input {
      width: 100%;
      padding: 0.75rem 1rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 1rem;
      transition: border-color 0.2s;
    }
    .auth-form input:focus {
      border-color: #4a90e2;
      outline: none;
      box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
    }
    .auth-actions {
      margin-top: 2rem;
    }
    .btn {
      display: inline-block;
      padding: 0.75rem 1.5rem;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 500;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn-primary {
      background-color: #4a90e2;
      color: white;
      border: none;
      width: 100%;
    }
    .btn-primary:hover {
      background-color: #3a7bc8;
    }
    .auth-footer {
      text-align: center;
      margin-top: 1.5rem;
      color: #666;
    }
    .auth-footer a {
      color: #4a90e2;
      text-decoration: none;
    }
    .auth-footer a:hover {
      text-decoration: underline;
    }
    .error-message {
      padding: 1rem;
      background-color: #ffebee;
      color: #c62828;
      border-radius: 6px;
      margin-bottom: 1.5rem;
      border-left: 4px solid #c62828;
    }
    .error-message ul {
      margin: 0;
      padding-left: 1.25rem;
    }
    .error-message li {
      margin-bottom: 0.25rem;
    }
    .form-row {
      display: flex;
      gap: 1rem;
    }
    .form-row .form-group {
      flex: 1;
    }